Message-ID: <Pine.LNX.4.21.0101121937200.32029-100000@artemis.imbe.med.uni-erlangen.de>
Date: 2001-01-12T18:37:39Z
From: Torsten Hothorn
Subject: sorting ascending descending?
In-Reply-To: <3A5F430A.D7B14AE6@molgen.mpg.de>
> HI!
> By xx[order(xx)] I can sort the array ascendin. How to sort them
> descending.
>
> eg.:
> > a<-c(2,3,110,23,4)
> > a[order(a)]
> [1] 2 3 4 23 110
>
> but i wont.
> [1] 110 23 4 3 2
rev(a[order(a)]
Torsten
>
> ???
> THX in advance
> Eryk
>
> --
> Witold Eryk Wolski
> Max Plank Institut fuer Molekulare Genetik
> Ihnestr73 14195 Berlin
> Germany
> tel.:
> Work 0049-30-84131426
> http://www.molgen.mpg.de/~wolski
>
>
> -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
> r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
> Send "info", "help", or "[un]subscribe"
> (in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch
> _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
>
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._