On 19-Oct-05 Gabor Grothendieck wrote:
> 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"

I wonder, has it ever worked? I get the same as you on

R.version.string #Linux
[1] "R version 1.6.2, 2003-01-10"

R.version.string #Linux
[1] "R version 1.8.0, 2003-10-08"

R.version.string #Linux
[1] "R version 2.1.0, 2005-04-08"

with the exception of

R.version.string #Linux
[1] "R version 1.2.3, 2001-04-26"

which does know about is.na()<- at all.


Hmmm
Ted.






--------------------------------------------------------------------
E-Mail: (Ted Harding) <[EMAIL PROTECTED]>
Fax-to-email: +44 (0)870 094 0861
Date: 20-Oct-05                                       Time: 01:11:45
------------------------------ XFMail ------------------------------

______________________________________________
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel

Reply via email to