rename_dt: Rename column in data.frame

Description Usage Arguments Value See Also Examples

View source: R/rename_dt.R

Description

Analogous function for rename in dplyr

Usage

1

Arguments

data

data.frame

...

staments of rename, e.g. 'sl = Sepal.Length' means the column named as "Sepal.Length" would be renamed to "sl"

Value

data.table

See Also

rename

Examples

1
2
3
iris %>%
  rename_dt(sl = Sepal.Length,sw = Sepal.Width) %>%
  head()

hope-data-science/tidydt documentation built on Feb. 21, 2020, 10:25 a.m.