[R] NA and logical indexes

2008-11-28 Thread Sebastian P. Luque
Hi, I vaguely remember this issue being discussed at some length in the past, but am having trouble relocating the proper thread (defining an adequate search string to do so): --cut here---start- R foo - data.frame(A=gl(2, 5, labels=letters[1:2]),

Re: [R] NA and logical indexes

2008-11-28 Thread Ted Harding
On 28-Nov-08 21:25:36, Sebastian P. Luque wrote: Hi, I vaguely remember this issue being discussed at some length in the past, but am having trouble relocating the proper thread (defining an adequate search string to do so): --cut here---start- R

Re: [R] NA and logical indexes

2008-11-28 Thread Sebastian P. Luque
On Fri, 28 Nov 2008 22:01:15 - (GMT), (Ted Harding) [EMAIL PROTECTED] wrote: [...] It is not! Oops, of course, I meant to say return rather than set :-/ [...] NA can seem to have a bewildering logic, but it all becomes clear if you interpret NA as value unkown. You asked for