chunk: chunk

chunkR Documentation

chunk

Description

Internal function 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 (default = NULL)

by

integer Interval to space sequence (default = 1)

length.out

integer Number of desired chunks, i.e. nrows of output matrix (default = NULL)

Value

2-column matrix of indices, each row representing a chunk

Author(s)

Marcin Imielinski


mskilab/bamUtils documentation built on Sept. 28, 2022, 3:45 p.m.