| across | R Documentation |
Used inside mutate() or summarise() to apply a function to multiple
columns selected with tidyselect. Returns a named list of expressions.
across(.cols, .fns, ..., .names = NULL)
.cols |
Column selection (tidyselect). |
.fns |
A function, formula, or named list of functions. |
... |
Additional arguments passed to |
.names |
A glue-style naming pattern. Uses |
A named list used internally by mutate/summarise.
f <- tempfile(fileext = ".vtr")
write_vtr(mtcars, f)
# In summarise (conceptual; across is expanded to individual expressions)
unlink(f)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.