[R] logical and NA

Christian Hoffmann christian.hoffmann at wsl.ch
Wed Sep 4 10:29:18 CEST 2002


Hi there, (sorry Martin, ich habe den falschen Empfaenger erwischt :-(  )

Is there a function in the base package or elsewhere which returns TRUE and 
not NA, even if NA is involved: (I did not find in the help system :-(  )

if ( x==something & !is.na(something))

or

if ( x==something & !is.na(x==something))

If "something" is complicated, a function would be handy.

Thanks
--christian


Dr.sc.math.Christian W. Hoffmann
Mathematics and Statistical Computing
Landscape Dynamics and Spatial Development
Swiss Federal Research Institute WSL
Zuercherstrasse 111
CH-8903 Birmensdorf, Switzerland
phone: ++41-1-739 22 77    fax: ++41-1-739 22 15
e-mail: christian.hoffmann at wsl.ch
www: http://www.wsl.ch/staff/christian.hoffmann/

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