groups_colnums: Get a named vector of column indices
for the grouping variables in a
grouped data frame
Description
Constructed a named vector of indices
equivalent to the vectors produced by
tidyselect::eval_select, but for the grouping
variables in an object of class
"grouped_df".
Usage
groups_colnums(data)
Value
A named integer vector.
Arguments
data
A data frame.
Details
If data is not grouped, then groups_colnums
returns a zero-length vector.