Error when trying to convert data frame into a csv file in R

0 votes

I'm trying to convert a data-frame to csv file and while I do that I get the following error, why is that so?

write.csv(packages, file = "packages.csv", row.names = FALSE)
Error in file(file, ifelse(append, "a", "w")) :
  cannot open the connection
In addition: Warning message:
In file(file, ifelse(append, "a", "w")) :
  cannot open file 'packages.csv': Permission denied
Nov 21, 2018 in Data Analytics by Ali
• 10,430 points
192 views

1 answer to this question.

0 votes
If packages.csv file is open on your system, close it and execute this command again. This should work.
answered Nov 21, 2018 by Kalgi
• 42,410 points

Related Questions In Data Analytics

0 votes
1 answer

How do I convert data frame to csv file in R?

Hey @Ali, its very simple one line ...READ MORE

answered Nov 21, 2018 in Data Analytics by Maverick
• 10,040 points
70 views
0 votes
2 answers

how to convert a data frame into a list in R

Convert whole data frame into a list?? ...READ MORE

answered Sep 4 in Data Analytics by anonymous
• 31,840 points
43 views
0 votes
1 answer

How to convert a text mining termDocumentMatrix into excel or csv in R?

By assuming that all the values are ...READ MORE

answered Apr 5, 2018 in Data Analytics by DeepCoder786
• 1,720 points
160 views
0 votes
1 answer
0 votes
2 answers

In data frame how to spilt strings into values?

You can do this using dplyr and ...READ MORE

answered Dec 4, 2018 in Data Analytics by Kalgi
• 42,410 points
61 views
0 votes
1 answer

"Error in if" while trying to execute simple code in R

This caused non-logical data or missing values passed ...READ MORE

answered Oct 31, 2018 in Data Analytics by Kalgi
• 42,410 points
41 views