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
Another alternative with dplyr:
mydata2 <- select(mydata, 2:ncol(data),1) #select any cols from col2 until the last col and place them before col1