[R] sort a table

herodote@oreka.com herodote at oreka.com
Tue Jul 26 12:22:35 CEST 2005


hi all,

I need to sort a table like this one:

n tmp s
1 215 0
2 654 1
3 213 0
4 569 1
5 954 1
6 562 1
7 252 0
8 555 0
9 988 1

I want to organize it with tmp increasing to produce the same tab but ordered by tmp

I think it is simple but just show me how good you are in R ...

thks
guillaume.

////////////////////////////////////////////////////////////
// Webmail Oreka : http://www.oreka.com
////////////////////////////////////////////////////////////




More information about the R-help mailing list