Add new variables and drop all others
Unlike mutate.()
, transmute.()
keeps only the variables that you create
transmute.(.df, ..., .by = NULL)
.df |
A data.frame or data.table |
... |
Columns to create/modify |
.by |
Columns to group by |
mtcars %>% transmute.(displ_l = disp / 61.0237)
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.