powered by
This function is helpful to export tables where certain columns are desired to be placed to the most left of the data.frame
putColsFirst(data.frame, columns)
data.frame with re-arranged columns
Data.frame
Character vector, names of columns which are to be put to the left
Jitao David Zhang <jitao_david.zhang@roche.com>
clubs <- data.frame(Points=c(21,23,28,24), Name=c("BVB", "FCB", "HSV", "FCK"), games=c(12,11,11,12)) putColsFirst(clubs, c("Name")) putColsFirst(clubs, c("Name", "games"))
Run the code above in your browser using DataLab