3

I am extracting the data from the server in R. I want to export that data (data frame) to CSV. Since the data is very big, write.csv is taking too much time or throwing an error. Is there any way to write the data to csv faster?

Avinash
  • 53
  • 5

1 Answers1

0

You could seperate your data in chunks and append them to your csv file one by one in a for loop.

write.table(chunk, file = "df.csv", sep = ",", col.names = F, row.names = F, append = T)