Learn R Programming

rtrend (version 0.1.5)

split_data: split_data

Description

split_data

Usage

split_data(x, nchunk = 6, byrow = TRUE)

Arguments

x

a vector, list, or matrix (not support 3d array)

nchunk

the number of chunks to be splitted

byrow

If TRUE, split by row, otherwise by column.