group_indices {dplyr} | R Documentation |
Generate a unique id for each group
group_indices(.data, ...) group_indices_(.data, ..., .dots, add = FALSE)
.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
|
add |
By default, when |
group_indices(mtcars, cyl)