ripley at stats.ox.ac.uk
Sat Jun 29 10:54:50 CEST 2002
Since NA denotes unknown, the result is always unknown.
On Sat, 29 Jun 2002, Remigijus Lapinskas wrote:
> Hello R-help,
> My vector aa has some NA's:
> > aa_c(NA,1)
Oh, please don't post ugly code like that. If you must use `_' leave
spaces around it (and be aware that it will be deprecated in 1.6.0).
> > aa=="NA"
>  NA FALSE
> > aa==NA
>  NA NA
> How can I detect NA's?
> In other words, I would like my answer to be TRUE FALSE.
> Best regards,
> Remigijus mailto:remigijus.lapinskas at maf.vu.lt
> 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
Brian D. Ripley, ripley at stats.ox.ac.uk
Professor of Applied Statistics, http://www.stats.ox.ac.uk/~ripley/
University of Oxford, Tel: +44 1865 272861 (self)
1 South Parks Road, +44 1865 272860 (secr)
Oxford OX1 3TG, UK Fax: +44 1865 272595
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