Skip to content
Prev 77426 / 398502 Next

How to sort data sets?

If you want to sort a data frame according a variable, the use it like

datfram[order(datfram$var),]

to sort all the data.frame, not just a variable
Spencer Graves wrote: