Skip to content
Prev 296102 / 398503 Next

Sorting a data set

If you want to sort by the columns with the names 'var1' and 'var2',
you would do:

newdata <- data[order(data$var1, data$var2), ]
On Wed, May 30, 2012 at 6:07 PM, tony.anderson <tony.anderson at noaa.gov> wrote: