I can rename column in dplyr like this:
mtcars %>% dplyr::rename(\'cylinder\'=cyl)
However, if I would like to change column names progr
The simplest solution currently to programmatically rename in dplyr is to use the tripple bang (!!!)
library(dplyr) cnames = c('cylinder' = 'cyl', 'mile_per_gallon' = 'mpg') mtcars %>% rename(!!!cnames)