split_indices {thisutils} | R Documentation |
Split indices.
Description
An optimised version of split for the special case of splitting row indices into groups.
Usage
split_indices(group, n = 0L)
Arguments
group |
Integer indices |
n |
The largest integer (may not appear in index).
This is hint: if the largest value of |
Value
A list of vectors of indices.
References
Examples
split_indices(sample(10, 100, rep = TRUE))
split_indices(sample(10, 100, rep = TRUE), 10)
[Package thisutils version 0.0.7 Index]