chunkPoints {easy.utils}R Documentation

Generate chunk points

Description

Unexported helper function ChunkPoints from Seurat. This can be quite useful when user needs to chunk some operations.

Usage

chunkPoints(dsize, csize)

Arguments

dsize

How big is the data being chunked

csize

How big should each chunk be

Value

A 2 x N matrix where each column is a chunk. The first row contains start points, and the second row contains end points.

References

https://github.com/satijalab/seurat/blob/763259d05991d40721dee99c9919ec6d4491d15e/R/utilities.R#L1699

Examples

### Split an index vector with 15273 elements into chunks, each of which has
### 3000 elements.
chunkPoints(15273, 3000)


[Package easy.utils version 0.0.4 Index]