pick | R Documentation |
across()
Select a subset of columns from within functions like mutate()
, summarize()
, or filter()
.
pick(...)
... |
Columns to select. Tidyselect compatible. |
df <- tidytable(
x = 1:3,
y = 4:6,
z = c("a", "a", "b")
)
df %>%
mutate(row_sum = rowSums(pick(x, y)))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.