Sort data frame
Ordering a data frame by a particular column can be quicker than doing it in excel, if the data frame is large.
It is useful, for example
For plotting lines through points in order, or
To see which rows contain the most extreme values at a column
The command
sortedData <- data.frame(unsortedFrame[order(unsortedFrame$length, decreasing=T),])