| To: | s-news@lists.biostat.wustl.edu |
|---|---|
| Subject: | Sorting dataframe |
| From: | Thom Burnett <Thom.Burnett@cognigencorp.com> |
| Date: | Tue, 28 Sep 2004 16:45:22 -0400 |
| User-agent: | Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.6) Gecko/20040113 |
How do I sort a data.frame by columns when the direction of sorting
changes from column to column.
The sort.col() function takes only a single direction. As an example, I want to take a data frame with columns: sex, race, smoking, weightand sort by sex ascending, race descending, smoking descending, then weight ascending. Is there a function available in SPlus 6.2 that does this in a single, straightforward step? |
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | LME- Comparing likelihood of two models, Pravin |
|---|---|
| Next by Date: | Re: LME- Comparing likelihood of two models, Dimitris Rizopoulos |
| Previous by Thread: | LME- Comparing likelihood of two models, Pravin |
| Next by Thread: | Re: Sorting dataframe, Dimitris Rizopoulos |
| Indexes: | [Date] [Thread] [Top] [All Lists] |