Learn R Programming

radiant.data (version 0.8.1)

mutate_ext: Add tranformed variables to a data frame (NSE)

Description

Add tranformed variables to a data frame (NSE)

Usage

mutate_ext(.tbl, .funs, ..., .ext = "")

Arguments

.tbl

Data frame to add transformed variables to

.funs

Function(s) to apply (e.g., funs(log))

...

Variables to transform

.ext

Extension to add for each variable

Details

Wrapper for dplyr::mutate_at that allows custom variable name extensions

Examples

Run this code
# NOT RUN {
mutate_ext(mtcars, funs(log), mpg, cyl, .ext = "_log")
mutate_ext(mtcars, funs(log), .ext = "_log")

# }

Run the code above in your browser using DataLab