I have a data frame with 48 columns. I want to split them into chunks of 12 (in this case giving me 3 data frames). I want to store the resulting data frames into a list. Would using a for loop be the best solution here since sometimes I have data frames with 60/72/84/96/etc columns?
mylist <- list()
mydf <- data.frame(t(seq(1,48)))
#Unsure how to proceed here!!
for(i in ncol(mydf)){
mylist[[i]] <- ???
}