[R] How to sort a dataset by one column?

Marc Schwartz MSchwartz at mn.rr.com
Wed Jun 22 23:50:36 CEST 2005


On Wed, 2005-06-22 at 14:34 -0700, Ling Jin wrote:
> I understand how to sort a vector, but I could not find how to sort a 
> data frame or matrix by one variable (column). Could you give me some 
> examples? Thanks!
> 
> Ling

See the examples in ?order

HTH,

Marc Schwartz




More information about the R-help mailing list