Description Usage Arguments Value Examples
Applies provided function across specified column(s) in provided dataframe.
1 | utils_mutate_across(df, columns, fun, ...)
|
df |
A dataframe. |
columns |
Vector of expression(s) or character string(s) specifying the columns to apply the function below to in the provided dataframe. |
fun |
Function to execute provided as an expression. |
... |
Argument(s) to be passed to the function above for execution. |
A dataframe.
1 2 3 4 5 6 7 8 | ## Not run:
df <- data.frame(
location = "glasgow", occupation = "wine merchant",
stringsAsFactors = FALSE
)
utils_mutate_across(df, c("location", "occupation"), paste0, "!")
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.