On Mon, 13 Aug 2001, kjetil halvorsen wrote:
> Hola!
>
> Is the following correct behaviour?
>
> > is.numeric(NA)
> [1] FALSE
> > is.numeric(c(NA))
> [1] FALSE
> > is.numeric(c(1,2,3,NA))
> [1] TRUE
Yes. NA is a logical constant unless it is coerced to some other type
(?is.na)
-thomas
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._