[R] Re : Sorting dataframe by different columns

From: justin bem <justin_bem_at_yahoo.fr>
Date: Fri, 08 Jun 2007 09:28:25 +0000 (GMT)


see sort_df() in the reshape package  

Justin BEM
Elève Ingénieur Statisticien Economiste
BP 294 Yaoundé.
Tél (00237)9597295.

Dear list,

I have a very short question,
Suggest a dataframe of four columns.

df <- data.frame(w,x,y,z)

I want this ordered the following way:
first by :x, decreasing = FALSE
and
secondly by: z, decreasing =TRUE

How can this be done ?

Thanks

Gunther



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 and provide commented, minimal, self-contained, reproducible code.

Ne gardez plus qu'une seule adresse mail ! Copiez vos mails vers Yahoo! Mail

        [[alternative HTML version deleted]]



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 and provide commented, minimal, self-contained, reproducible code. Received on Fri 08 Jun 2007 - 09:45:51 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Fri 08 Jun 2007 - 11:31:31 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.