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