View source: R/encode_decode.R
coder | R Documentation |
The coder()
function applies a set of functions to multiple variables in a data frame using dplyr
's mutate()
and across()
functions.
coder(.data, .fns)
.data |
The input data frame. |
.fns |
A set of functions to be applied to the variables in the data frame. |
A modified data frame with the functions applied to the variables.
# Apply the `mean()` function to multiple variables in the `mtcars` data frame
coder(mtcars, mean)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.