This was an experimental function that allows you to modify the grouping variables for a single operation; it is superseded in favour of using the .by argument to individual verbs.
with_groups(.data, .groups, .f,...)
Arguments
.data: A data frame
.groups: <tidy-select> One or more variables to group by. Unlike group_by(), you can only group by existing variables, and you can use tidy-select syntax like c(x, y, z) to select multiple variables.
Use NULL to temporarily un group.
.f: Function to apply to regrouped data. Supports purrr-style ~ syntax