groups by list of columns

PHOTO EMBED

Fri Jul 28 2023 12:34:49 GMT+0000 (Coordinated Universal Time)

Saved by @vs #r

col_list <- c("col1", "col2")
df %>% dplyr::group_by(dplyr::across(dplyr::all_of(col_list)))
content_copyCOPY