To move a column in R, we can use the select() function from the dplyr package or the setcolorder() function from the data.table package.
Here's an example using dplyr:
main.r217 chars13 lines
Output:
main.r32 chars5 lines
Here's an example using data.table:
main.r215 chars13 lines
Output:
main.r36 chars5 lines
gistlibby LogSnag