Skip to content
Browse files

Explore split_indices

  • Loading branch information...
1 parent a1a7277 commit 9ddb44429736b551af1c5279fd5a5ed0ec582f14 @hadley committed Oct 28, 2012
Showing with 3 additions and 1 deletion.
  1. +1 −1 DESCRIPTION
  2. +1 −0 NAMESPACE
  3. +1 −0 R/split-indices.r
View
2 DESCRIPTION
@@ -1,7 +1,7 @@
Package: plyr
Type: Package
Title: Tools for splitting, applying and combining data
-Version: 1.7.1.99.1
+Version: 1.7.1.99.2
Author: Hadley Wickham <h.wickham@gmail.com>
Maintainer: Hadley Wickham <h.wickham@gmail.com>
Description: plyr is a set of tools that solves a common
View
1 NAMESPACE
@@ -92,6 +92,7 @@ export(revalue)
export(rlply)
export(round_any)
export(splat)
+export(split_indices)
export(split_labels)
export(strip_splits)
export(summarise)
View
1 R/split-indices.r
@@ -8,6 +8,7 @@
#' @param n largest integer (may not appear in index)
#' @useDynLib plyr
#' @keywords internal manip
+#' @export
split_indices <- function(group, n = max(group)) {
if (length(group) == 0) return(integer())
stopifnot(is.integer(group))

0 comments on commit 9ddb444

Please sign in to comment.
Something went wrong with that request. Please try again.