Learn R Programming

radiant.data (version 0.6.0)

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

Description

Add tranformed variables to a data frame (NSE)

Usage

mutate_each(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_each that allows custom variable name extensions

Examples

Run this code
mutate_each(mtcars, funs(log), mpg, cyl, ext = "_log")

Run the code above in your browser using DataLab