Message-ID: <88EAF3512A55DF46B06B1954AEF73F740867A23D@dc1ex2.air.org>
Date: 2005-04-01T14:00:31Z
From: Doran, Harold
Subject: a R function for sort a data frame.
You could do something like this
dataframe[order(dataframe$variable),]
-----Original Message-----
From: r-help-bounces at stat.math.ethz.ch
[mailto:r-help-bounces at stat.math.ethz.ch] On Behalf Of Mario Morales
Sent: Thursday, March 31, 2005 10:23 PM
To: r-help at stat.math.ethz.ch
Subject: [R] a R function for sort a data frame.
Is there a R function for sort a data frame by a variable ?
I know sort a vector, but I don't know sort a data frame by a column.
Can you help me ?
the sort() function don't work with data frame.
______________________________________________
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