c_across | R Documentation |
c_across()
works inside of mutate_rowwise()
. It uses tidyselect so
you can easily select multiple variables.
c_across(cols = everything())
cols |
Columns to transform. |
df <- data.table(x = runif(6), y = runif(6), z = runif(6))
df %>%
mutate_rowwise(row_mean = mean(c_across(x:z)))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.