group_indices
From dplyr v0.5.0
by Hadley Wickham
Group id.
Generate a unique id for each group
Usage
group_indices(.data, ...)group_indices_(.data, ..., .dots)
Arguments
- .data
a tbl
- ...
variables to group by. All tbls accept variable names, some will also accept functions of variables. Duplicated groups will be silently dropped.
- .dots
Used to work around non-standard evaluation. See
vignette("nse")
for details.
See Also
Examples
library(dplyr)
group_indices(mtcars, cyl)
Community examples
Looks like there are no examples yet.