Arguments
- ...
Columns to select. Tidyselect compatible.
Examples
df <- tidytable(
x = 1:3,
y = 4:6,
z = c("a", "a", "b")
)
df %>%
mutate(row_sum = rowSums(pick(x, y)))
#> # A tidytable: 3 × 4
#> x y z row_sum
#> <int> <int> <chr> <dbl>
#> 1 1 4 a 5
#> 2 2 5 a 7
#> 3 3 6 b 9