[R] How to sort data sets?

Uwe Ligges ligges at statistik.uni-dortmund.de
Thu Sep 15 12:31:52 CEST 2005

Martin Lam wrote:

> Hi,
> I was wondering if someone know how to sort a data set
> by column.
> I've tried sort() but without luck. I would think
> there should be a function for it somewhere. An
> example with the iris data set would be appreciated.

See ?order.

Uwe Ligges

> Thanks,
> Martin
> ______________________________________________
> R-help at stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html

More information about the R-help mailing list