Skip to content
Prev 30284 / 398506 Next

How to sort a dataframe?

Remko Duursma wrote:
Remko:

   First examine the results of the following:

order(tester[,1])

   Then try this:

tester[order(tester[,1]),]

   See ?order.

hope it helps,

Chuck Cleland