[R] order()
    Ko-Kang Kevin Wang 
    kwan022 at stat.auckland.ac.nz
       
    Fri Mar 29 12:09:03 CET 2002
    
    
  
Hi,
In the order() help file, there is an example like:
     a <- c(4, 3, 2, NA, 1)
     b <- c(4, NA, 2, 7, 1)
     z <- cbind(a, b)
     (o <- order(a, b)); z[o, ]
How can I do something like "order a in ascending order, b in descending
order"?  And say I have a third vector c, and I'd like to add this to the
previous condition "a ascending, b descending, c descending".  How can I
do this?
Thanks,
Ko-Kang Wang
------------------------------------------------------------------------------
Ko-Kang Kevin Wang
Postgraduate PGDipSci Student
Department of Statistics
University of Auckland
New Zealand
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
    
    
More information about the R-help
mailing list