groups_colnums function

Get a named vector of column indices for the grouping variables in a grouped data frame