powered by
Applies provided function across specified column(s) in provided dataframe.
utils_mutate_across(df, columns, fun, ...)
A dataframe.
Vector of expression(s) or character string(s) specifying the columns to apply the function below to in the provided dataframe.
Function to execute provided as an expression.
Argument(s) to be passed to the function above for execution.
# NOT RUN { df <- data.frame( location = "glasgow", occupation = "wine merchant", stringsAsFactors = FALSE ) utils_mutate_across(df, c("location", "occupation"), paste0, "!") # }
Run the code above in your browser using DataLab