Error when executing write.csv function in R

0 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
• 10,400 points
271 views

2 answers to this question.

0 votes

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
• 40,440 points
0 votes
row.names = F
answered Mar 5 by anonymous

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,040 points
37 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,680 points
138 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,040 points
124 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
• 40,440 points
92 views