Learn R Programming

tidyfst (version 0.7.7)

mutate_dt: Mutate columns in data.frame

Description

Analogous function for mutate and transmute in dplyr.

Usage

mutate_dt(data, ...)

transmute_dt(data, ...)

Arguments

data

data.frame

...

List of variables or name-value pairs of summary/modifications functions.

Value

data.table

See Also

mutate

Examples

Run this code
# NOT RUN {
iris %>% mutate_dt(one = 1,Sepal.Length = Sepal.Length + 1)
iris %>% transmute_dt(one = 1,Sepal.Length = Sepal.Length + 1)

# }

Run the code above in your browser using DataLab