Hello,
I am trying to rename a variable inside a data frame with a name that is store in an R object as so :
iris1 <- iris # the df with the variable that I want to change the name
New_name <- "my nicer name"
iris1 <- rename(iris1, New_name = Species)
But this code doesn't work and the variable is simply rename as "New_name"
...
How can I do this ?
Thanks,