Reputation: 15
I have been trying to save a dataframe into csv format in r. It has 22 variables with in various formats. Am finding a solution to save a file in csv.
write.csv(newdata,file = "MyDataNew.csv")
Error in write.table(newdata, file = "MyDataNew.csv", col.names = NA, : unimplemented type 'list' in 'EncodeElement'
I would like the file to be saved in csv format.
Upvotes: 0
Views: 175
Reputation: 26
This will probably be fixed by:
write.csv(as.data.frame(newdata),file = "MyDataNew.csv")
Upvotes: 1