I have the following data frame and I want to break it up into 10 different data frames. I want to break the initial 100 row data frame into 10 data frames of 10 rows. I cou
If you can generate a vector that defines the groups, you can split anything:
split
f <- rep(seq_len(ceiling(1123 / 200)),each = 200,length.out = 1123) > df1 <- split(df,f = f) > lapply(df1,dim) $`1` [1] 200 3 $`2` [1] 200 3 $`3` [1] 200 3 $`4` [1] 200 3 $`5` [1] 200 3 $`6` [1] 123 3