UPDATE: From comment below on this post, this is now working as expected, without the issues I laid out here.
Below is a toy example of using rename_ fr
rename_
In my Rstudio, I define:
x <- 'myname' dat <- data.frame(yes=1, no=2)
I want to change the variable name from yes to myname
It doesn't work:
rename_(dat, .dots = setNames(x, "yes"))
But this works:
rename_(dat, .dots = setNames("yes", x)) rename_(dat, .dots = setNames("yes", paste(x) ))