splitSeqIntoBlocks: Splits a vector into groups based on the size of one element...

View source: R/splitSeqIntoBlocks.R

splitSeqIntoBlocksR Documentation

Splits a vector into groups based on the size of one element and a size limit.

Description

Splits a vector into groups based on the size of one element and a size limit.

Usage

splitSeqIntoBlocks(t, size1, size, blocks = 1)

Arguments

t

is a vector

size1

the size of each element.

size

the maximum size each block.

blocks

(optional) if the number of blocks is lower than 'blocks', distribute evenly.


arnejohannesholmin/TSD documentation built on April 14, 2024, 5:29 a.m.