Split a data frame or matrix into blocks of the same size (= data frames of matrices with the same number of rows)

splitIntoFixSizedBlocks(data, blocksize)

Arguments

data

data frame or matrix

blocksize

number of rows in each block into which data is split

Value

list of data frames (if data is a data frame) or list of matrices (if data is a matrix)