The rename function from dplyr is not working on my system.
I'm running R 3.6.1, dplyr 0.8.3, rlang 0.4.0, on Rstudio 1.2.1335 and I can't get rename to work.
test <- data.frame(X1 = c(2, 3, 4), X2 = c(5, 6, 7))
test <- test %>%
rename(X1 = column1)
I expect the variable name X1 to change to column1. What I am getting is:
Error in .f(.x[[i]], ...) : object 'column1' not found