Is there a way to systematically select the last columns of a data frame? I would like to be able to move the last columns to be the first columns, but maintain the order of
I know this topic is a little dead, but wanted to chime in with a simple dplyr solution:
dplyr
library(dplyr) mydata <- mydata %>% select(A, B, everything())
Hopefully that helps out any future visitors to this question.