[ad_1]
I have a dataframe in R (points_t3) with 20 million records and I am looking to split into even chuncks in a same order and write a .csv file for each chunk. I was able to split the data using the below code:
n = 20
split(points_t3, factor(sort(rank(row.names(points_t3))%%n)))
Any suggestions on how to use this split and able to write data into 20 separate csv files in the directory path defined in R. Thanks,
[ad_2]