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,450 points
81 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
• 37,320 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
33 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,700 points
77 views
0 votes
1 answer

How to convert a list to data frame in R?

Let's assume your list of lists is ...READ MORE

answered Apr 12, 2018 in Data Analytics by nirvana
• 3,060 points

edited Apr 12, 2018 by nirvana 1,820 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
• 37,320 points
37 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
• 37,320 points
27 views