Skip to content
Prev 31212 / 398506 Next

Code bug unresolved involving if condition

The message is both pleasant and accurate!  It indicates that you have 
made an error, and tells you what the error is.

foo == NA is always missing, since NA denotes a missing value.
Use is.na(foo): see ?is.na.
On Fri, 25 Apr 2003 vincent.stoliaroff at socgen.com wrote: