chunk: chunk

View source: R/skitools.R

chunkR Documentation

chunk

Description

takes same input as seq (from, to, by, length.out) and outputs a 2 column matrix of indices corresponding to "chunks"

Usage

chunk(from, to = NULL, by = 1, length.out = NULL)

Arguments

from

integer where to begin sequence

to

integer to end sequence

by

interval to space sequence

length.out

number of desired chunks, i.e. nrows of output matrix

Value

2 column matrix of indices, each row representing chunk

Author(s)

Marcin Imielinski


mskilab/skitools documentation built on Aug. 31, 2023, 1:13 p.m.