[R] How to sort a dataset by one column?
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 __ R-help@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
Re: [R] How to sort a dataset by one column?
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 __ R-help@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
Re: [R] How to sort a dataset by one column?
See RSiteSearch("sort.data.frame"), or more generally, ?order. Andy > From: Ling Jin > > 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 > > __ > R-help@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 > > > __ R-help@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