[R] order() and na.last

Uwe Ligges ligges at statistik.uni-dortmund.de
Fri Mar 23 12:13:38 CET 2001


"Richards, Tom" wrote:
> 
> Hello:
> 
>         I'm not sure what is going on in these two statements.  the first
> seems to be right, but the second is a problem:
> 
> > order(c(3,2,4,NA),na.last=TRUE)
> [1] 2 1 3 4
> 
> > order(c(3,2,4,NA),na.last=FALSE)
> Error in .NotYetUsed("na.last != TRUE") : argument `na.last != TRUE' is not
> used (yet)
> 
> > order(c(3,2,4,NA))
> 
> I am using R 1.2.2 under Windows NT.  Thanks.

Let's read the help (?order): 

na.last:  for controlling the treatment of `NA's. If `TRUE', missing
          values in the data are put last; if `FALSE', they are put
          first; if `NA', they are removed. Currently, `TRUE' is the
          only possible value.

To point it out: "Currently, 'TRUE' is the only possible value.

Uwe Ligges
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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