s-news
[Top] [All Lists]

Re: sorting dataframe on rownames

To: "Jonathan Dakin" <jdakin@overwey.demon.co.uk>, "Splus Mailing List" <s-news@lists.biostat.wustl.edu>
Subject: Re: sorting dataframe on rownames
From: "Jordan, Paul" <paul.jordan@roche.com>
Date: Wed, 29 Mar 2006 14:09:19 +0200
Thread-index: AcZTKZt2QO8gjXGhRC+CQhFbHHmxMw==
Thread-topic: sorting dataframe on rownames
Try the function "sort.col"!
 
Regards,
Paul
 
 
-----Original Message-----
From: Jonathan Dakin [mailto:jdakin@overwey.demon.co.uk]
Sent: Tuesday, March 28, 2006 8:40 PM
To: Splus Mailing List
Subject: sorting dataframe on rownames

Could anyone tell me how to sort a dataframe alphabetically according to the rownames ?  Sorry for the triviality. 

I could create a column equal to the rownames vector, sort on that and then remove the column, but it seems there should be a quicker way about.

Many thanks for any help.  (Using version 6.1).

Jonathan Dakin
Portsmouth Hospital



<Prev in Thread] Current Thread [Next in Thread>