mutate_dt {tidyfst} | R Documentation |
Mutate columns in data.frame
Description
Adds or updates columns in data.frame.
Usage
mutate_dt(.data, ..., by)
transmute_dt(.data, ..., by)
Arguments
.data |
data.frame |
... |
List of variables or name-value pairs of summary/modifications functions. |
by |
(Optional) Mutate by what group? |
Value
data.table
See Also
Examples
iris %>% mutate_dt(one = 1,Sepal.Length = Sepal.Length + 1)
iris %>% transmute_dt(one = 1,Sepal.Length = Sepal.Length + 1)
# add group number with symbol `.GRP`
iris %>% mutate_dt(id = 1:.N,grp = .GRP,by = Species)
[Package tidyfst version 1.7.9 Index]