[Rd] is.na<- problem

Gabor Grothendieck ggrothendieck at gmail.com
Thu Oct 20 01:29:42 CEST 2005


In the following the first element of xx should have
been set to 0 but remains NA.  Any comments?

> xx <- c(NA,1)
> is.na(xx) <- 0
> xx
[1] NA  1
> R.version.string # Windows XP
[1] "R version 2.2.0, 2005-09-20"



More information about the R-devel mailing list