
Last chance! 50% off unlimited learning
Sale ends in
Data split function by colum
split_col_data(x, sections = 1)
Data.frame or data.table object that need to be divided n sections by colum
Split section number (colnum)
# NOT RUN {
x1 <- data.frame(col1 = 1:10, col2 = 11:20)
x1.t <- t(x1)
x <- split_col_data(x1.t, sections = 3)
# }
Run the code above in your browser using DataLab