From Ted.Harding at nessie.mcc.ac.uk  Thu Oct 20 02:13:42 2005
From: Ted.Harding at nessie.mcc.ac.uk ( (Ted Harding))
Date: Thu, 20 Oct 2005 01:13:42 +0100 (BST)
Subject: [Rd] is.na<- problem
In-Reply-To: <971536df0510191629q29acd508n5b2d488e8e3d8290@mail.gmail.com>
Message-ID: <XFMail.051020011342.Ted.Harding@nessie.mcc.ac.uk>

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) <Ted.Harding at nessie.mcc.ac.uk>
Fax-to-email: +44 (0)870 094 0861
Date: 20-Oct-05                                       Time: 01:11:45
------------------------------ XFMail ------------------------------



[Rd] is.na<- problem
 (Ted Harding