powered by
Generate a unique id for each group
group_indices(.data, ...)group_indices_(.data, ..., .dots)
group_indices_(.data, ..., .dots)
a tbl
variables to group by. All tbls accept variable names, some will also accept functions of variables. Duplicated groups will be silently dropped.
Used to work around non-standard evaluation. See vignette("nse") for details.
vignette("nse")
group_by
group_indices(mtcars, cyl)
Run the code above in your browser using DataLab