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. Thanks, Martin
see : order, sort.list, sort and rank hih
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
?order 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. > > 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-- Spencer Graves, PhD Senior Development Engineer PDF Solutions, Inc. 333 West San Carlos Street Suite 700 San Jose, CA 95110, USA spencer.graves at pdf.com www.pdf.com <http://www.pdf.com> Tel: 408-938-4420 Fax: 408-280-7915