I have an example data frame:
df <- data.frame(x = 1:112, y = runif(112))
Is there a way to print a list of data frames with the first
You could use split(), with rep() to create the groupings.
split()
rep()
n <- 10 nr <- nrow(df) split(df, rep(1:ceiling(nr/n), each=n, length.out=nr))