Re: [R] why the same values cannot be judged to be the same in R

2009-11-13 Thread jim holtman
I think you want to use '%in%' instead of '=='. Try debugging (or understanding) what is happening by evaluating the subexpressions of the compares you have in your original posting. Also take a look at the 'recycling' of arguments and then you may understand what is happening: data2[(data2$x1

Re: [R] why the same values cannot be judged to be the same in R

2009-11-13 Thread rusers.sh
Thanks all. %in% is what i need. 2009/11/13 jim holtman jholt...@gmail.com I think you want to use '%in%' instead of '=='. Try debugging (or understanding) what is happening by evaluating the subexpressions of the compares you have in your original posting. Also take a look at the

[R] why the same values cannot be judged to be the same in R

2009-11-12 Thread rusers.sh
Hi Rusers, I found sometimes that the same values cannot be judged to be the same in R. Anybody knows the probelm? I think i ignored some minor detail. Thanks. Here is the example.

Re: [R] why the same values cannot be judged to be the same in R

2009-11-12 Thread David Winsemius
On Nov 12, 2009, at 10:04 PM, rusers.sh wrote: Hi Rusers, I found sometimes that the same values cannot be judged to be the same in R. Anybody knows the probelm? I think i ignored some minor detail. Thanks. Here is the example.