The title pretty much claims it. I have a data frame that has 7 + million rows, too big for me to parse without my malfunctioning. I want to split it into 100 smaller data frames with 70,000 rows and have the 101st data block with the remaining rows (<70,000). This seems to be nontrivial.
I know that I can manually calculate the frame size n+1 , delete it, and then use the split function as follows:
d <- split(my_data_frame,rep(1:100,each=70,000))
But I have some large data frames, and all of these calculations are tedious. Is there an alternative solution?
source share