Skip to content
Prev 44970 / 398528 Next

question

You want to use & instead of &&.

--Matt

-----Original Message-----
From: r-help-bounces at stat.math.ethz.ch
[mailto:r-help-bounces at stat.math.ethz.ch]On Behalf Of Svetlana Eden
Sent: Friday, February 27, 2004 7:57 AM
To: r-help
Subject: [R] question


Hi everybody.

The question:
I get two vectors 'iFalseFalse' and 'i2'.
I think they should be the same but they are not.
Is it because 
R does not handle complicated logical expressions in such cases 
or I do something wrong?
[1]    NA  TRUE  TRUE    NA FALSE    NA
[1] NA NA  5 NA
[1] 2 3 5
[1] 5
numeric(0)