powered by
Analogous function for rename in dplyr
rename
rename_dt(data, ...)
data.frame
staments of rename, e.g. `sl = Sepal.Length` means the column named as "Sepal.Length" would be renamed to "sl"
data.table
# NOT RUN { iris %>% rename_dt(sl = Sepal.Length,sw = Sepal.Width) %>% head() # }
Run the code above in your browser using DataLab