orderBy
From doBy v4.515
by Søren Højsgaard
Ordering (sorting) rows of a data frame
Ordering (sorting) rows of a data frame by the certain variables in the data frame. This function is essentially a wrapper for the order() function  the important difference being that variables to order by can be given by a model formula.
 Keywords
 utilities
Usage
orderBy(formula, data)
Arguments
 formula
 The right hand side of a formula
 data
 A data frame
Details
The sign of the terms in the formula determines whether sorting should be ascending or decreasing; see examples below
Value

The ordered data frame
See Also
Examples
data(dietox)
orderBy(~Time+Evit, data=dietox)
## Sort decreasingly by Time
orderBy(~Time+Evit, data=dietox)
Community examples
Looks like there are no examples yet.