transmute.: Add new variables and drop all others
Description
Unlike mutate.(), transmute.() keeps only the variables that you create
Usage
transmute.(.df, ..., by = NULL)dt_transmute(.df, ..., by = NULL)
Arguments
.df
A data.frame or data.table
Examples
Run this code# NOT RUN {
mtcars %>%
transmute.(displ_l = disp / 61.0237)
# }
Run the code above in your browser using DataLab