Using the following example dataframe:
a <- c(1:5) b <- c(\"Cat\", \"Dog\", \"Rabbit\", \"Cat\", \"Dog\") c <- c(\"Dog\", \"Rabbit\", \"Cat\", \"Do
The package dplyr and the function dplyr::relocate, a new verb introduced in dplyr 1.0.0, does exactly what you are looking for.
dplyr
dplyr::relocate
dplyr 1.0.0
df %>% dplyr::relocate(b, c, .after = f)