Error when executing write.csv function in R

+1 vote
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
• 10,660 points
684 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
• 51,810 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,800 points
83 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,710 points
300 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,800 points
246 views
0 votes
1 answer
0 votes
1 answer
0 votes
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
• 51,810 points
169 views