Error when executing write csv function in R

+2 votes
Error in write.table(packages, file = "packages.csv", raw.names = FALSE,  :
  unused argument (raw.names = FALSE)

when execute the following command in R

write.csv([data-frame-name], file = "packages.csv", raw.names = FALSE)
Nov 21, 2018 in Data Analytics by Ali
• 11,360 points
5,283 views

2 answers to this question.

+1 vote

Hey @Ali, I think you've miss-spelled row. Change the command to the following

write.csv([data-frame-name], file = "packages.csv", row.names = FALSE)

Hope this helps:)

answered Nov 21, 2018 by Kalgi
• 52,360 points
+1 vote
row.names = F
answered Mar 5, 2019 by anonymous
Just using F instead of false is accepted in Python? I did not know this.

Related Questions In Data Analytics

0 votes
1 answer

Error sayimg "Executing test function test.should_error ... Timing stopped at: 0 0 0 " in R

In your testthat tests you declare an anonymous function like so: function() ...READ MORE

answered Nov 12, 2018 in Data Analytics by Maverick
• 10,840 points
768 views
0 votes
1 answer

How to write a custom function which will replace all the missing values in a vector with the mean of values in R?

Consider this vector: a<-c(1,2,3,NA,4,5,NA,NA) Write the function to impute ...READ MORE

answered Jul 4, 2018 in Data Analytics by CodingByHeart77
• 3,740 points
4,208 views
0 votes
1 answer

Error saying "Error in df$item : object of type 'closure' is not subsettable" when trying to use arules package

Try replacing ID <- c("A123","A123","A123","A123","B456","B456","B456") item <- c("bread", "butter", ...READ MORE

answered Nov 15, 2018 in Data Analytics by Maverick
• 10,840 points
1,413 views
+1 vote
1 answer
+1 vote
1 answer
+1 vote
1 answer

"subscript out of bounds" error in while executing simple R program

This is caused by trying to access ...READ MORE

answered Oct 31, 2018 in Data Analytics by Kalgi
• 52,360 points
2,031 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP