[R] Help with possible bug (assigning NA value to data.frame)?

2005-06-07 Thread Dan Bolser
This 'strange behaviour' manifest itself within some quite complex code. When I created a *very* simple example the behaviour dissapeared. Here is the simplest version I have found which still causes the strange behaviour (it could be quite unrelated to the boot library, however).

RE: [R] Help with possible bug (assigning NA value to data.frame) ?

2005-06-07 Thread Liaw, Andy
There's something peculiar that I do not understand here. However, did you realize that the thing you are assigning into parts of `a' is NULL? Check you're my.test.boot.ci.1: It's NULL. Be that as it may, I get: a - data.frame(matrix(1:4, nrow=2), X3=NA, X4=NA) a X1 X2 X3 X4 1 1 3 NA NA

Re: [R] Help with possible bug (assigning NA value to data.frame) ?

2005-06-07 Thread James Reilly
This seems to have more to do with NULLs than NAs. For instance: a - data.frame(matrix(1:8, nrow=2)) a X1 X2 X3 X4 1 1 3 5 7 2 2 4 6 8 a[a$X2 == 4,]$X1 - NULL a X1 X2 X3 X4 1 1 3 5 7 2 4 6 8 4 James On 8/06/2005 7:15 a.m., Liaw, Andy wrote: There's something peculiar