Is there a clever way to use the rename function in dplyr when in some instances the column to be renamed doesn\'t exist?
For example, I would like the following not to
They have now mentioned the use of rename_with
rename_with
mtcars %>% rename_with( ~"missing_varible", "foo")
Please see the help for more details.