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. 'weight = "wt"' means the column named as "wt" would be renamed to "weight"

Value

data.table

See Also

rename

Examples

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

hope-data-science/tidydt0 documentation built on Feb. 3, 2020, 12:04 a.m.