This function is taken from daattali/rsalad R package.
move_back(df, cols)
A data.frame.
A vector of column names to move to the back
# NOT RUN { df <- data.frame(a = character(0), b = character(0), c = character(0)) move_back(df, "b") move_back(df, c("b", "a")) # }
Run the code above in your browser using DataLab