split_indices: Split indices.

View source: R/RcppExports.R

split_indicesR Documentation

Split indices.

Description

An optimised version of split for the special case of splitting row indices into groups, as used by splitter_d.

Usage

split_indices(group, n = 0L)

Arguments

group

integer indices

n

largest integer (may not appear in index). This is hint: if the largest value of group is bigger than n, the output will silently expand.

Examples

split_indices(sample(10, 100, rep = TRUE))
split_indices(sample(10, 100, rep = TRUE), 10)

plyr documentation built on Oct. 2, 2023, 9:07 a.m.