Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

transmute..html

Add new variables and drop all others


Description

Unlike mutate.(), transmute.() keeps only the variables that you create

Usage

transmute.(.df, ..., .by = NULL)

Arguments

.df

A data.frame or data.table

...

Columns to create/modify

.by

Columns to group by

Examples

mtcars %>%
  transmute.(displ_l = disp / 61.0237)

tidytable

Tidy Interface to 'data.table'

v0.6.1
MIT + file LICENSE
Authors
Mark Fairbanks [aut, cre], Abdessabour Moutik [ctb], Matt Carlson [ctb], Ivan Leung [ctb], Ross Kennedy [ctb]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.