powered by
Rename a data frame column
rename.variable(df, old, new)
A data frame with the column named "old" renamed as "new"
data frame
old name
new name
data(iris) str(iris) iris <- rename.variable(iris, "Species", "especes") str(iris)
Run the code above in your browser using DataLab