Skip to content
Fetching contributors…
Cannot retrieve contributors at this time
23 lines (20 sloc) 745 Bytes
# This file was generated by Rcpp::compileAttributes
# Generator token: 10BE3573-1514-4C36-9D1C-5A225CD40393
#' Split indices.
#'
#' An optimised version of split for the special case of splitting row
#' indices into groups, as used by \code{\link{splitter_d}}.
#'
#' @param index integer indices
#' @param n largest integer (may not appear in index). This is hint: if
#' the largest value of \code{group} is bigger than \code{n}, the output
#' will silently expand.
#' @useDynLib plyr
#' @keywords internal manip
#' @export
#' @examples
#' split_indices(sample(10, 100, rep = TRUE))
#' split_indices(sample(10, 100, rep = TRUE), 10)
split_indices <- function(group, n = 0L) {
.Call('plyr_split_indices', PACKAGE = 'plyr', group, n)
}
Something went wrong with that request. Please try again.