From: ripley@stats.ox.ac.uk
Date: Sat 29 Jun 2002 - 18:54:50 EST
Message-id: <Pine.LNX.4.31.0206290952480.23376-100000@gannet.stats>
Use is.na().
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"
> [1] NA FALSE
> > aa==NA
> [1] 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@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@stat.math.ethz.ch
> _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
>
-- Brian D. Ripley, ripley@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@stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
This archive was generated by hypermail 2.1.3 : Wed 16 Oct 2002 - 11:57:34 EST