rangeToBuckets: Split a vector of indices into buckets

Description Usage Arguments Value Examples

View source: R/datascaling.R

Description

Splits any index vector into a list of index vectors where each vector is of length bucketsize exept for the last one which contains the remainder. The remainder is defined as length(x) discrete ranges. Negative to positive.

Usage

1
rangeToBuckets(x, bucketsize = 10)

Arguments

x

the indices to split into buckets

bucketsize

the size each bucket should have

Value

a list of indices of length bucketsize

Examples

1
2

DoktorMike/datools documentation built on Feb. 28, 2021, 8:39 a.m.