Skip to contents

Split a data frame or a matrix into blocks of the same size, i.e. data frames or matrices with the same number of rows (except the last one that is shorter unless the total number of rows is a multiple of the number of rows per block).

Usage

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)