Selection helper for grouping columns

group_cols()

Examples

df <- tidytable(
  x = c("a", "b", "c"),
  y = 1:3,
  z = 1:3
)

df %>%
  group_by(x) %>%
  select(group_cols(), y)
#> # A tidytable: 3 × 2
#> # Groups:      x
#>   x         y
#>   <chr> <int>
#> 1 a         1
#> 2 b         2
#> 3 c         3