Description Usage Arguments Examples
View source: R/rename.R
rename data
1
rename(data, old = NULL, new = NULL)
data
A data frame
old
old name, a vector
new
new name, a vector
1 2 3
dat <- data.frame(a = c(1,2,3),b=c("1","a","b"),c=c(1,2,5)) rename_dat <- data.frame(old=c("a","b"),new=c("aa","bb")) data_new <- rename(dat,old=rename_dat$old,new= rename_dat$new)
Add the following code to your website.
REMOVE THIS Copy to clipboard
For more information on customizing the embed code, read Embedding Snippets.