dplyr (version 0.7.8)

group_indices: Group id.

Description

Generate a unique id for each group

Usage

group_indices(.data, ...)

Arguments

.data

a tbl

...

Variables to group by. All tbls accept variable names. Some tbls will accept functions of variables. Duplicated groups will be silently dropped.

See Also

group_by()

Examples

Run this code
# NOT RUN {
group_indices(mtcars, cyl)
# }

Run the code above in your browser using DataCamp Workspace