powered by
Sort a data frame by a column of choice. The column of choice is specified by the number of the column.
df.sortcol(x,n,desc)
:a data frame
:number column to sort
:the order of sorting, default set to TRUE; for ascending order set to FALSE
# NOT RUN { df.sortcol(mtcars,2,desc = TRUE) # }
Run the code above in your browser using DataLab