Learn R Programming

plyr (version 1.5.2)

split_indices: Split indices.

Description

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

Usage

split_indices(index, group, n=max(group))

Arguments

index
integer indices
group
integer groups
n
largest integer (may not appear in index)