names -> data-mask, via across(all_of())
Setup:
- outer function,
my_group_by()
, expects character names - inner function,
dplyr::group_by()
, expects data-masking
Building the bridge:
all_of()
takes character names and is a tidy selectoracross()
performs selection and returns a tibble