splitIntoFixSizedBlocks: Split into Blocks of Same Size

View source: R/dataFrame.R

splitIntoFixSizedBlocksR Documentation

Split into Blocks of Same Size

Description

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)


KWB-R/kwb.utils documentation built on April 1, 2024, 7:12 a.m.