
Last chance! 50% off unlimited learning
Sale ends in
Generate a unique id for each group
group_indices(.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.
# NOT RUN {
group_indices(mtcars, cyl)
# }
Run the code above in your browser using DataLab