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 March 5, 2025, 11:52 p.m.