Skip to content

question

2 messages · Svetlana Eden, Uwe Ligges

#
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)

  
    
#
Svetlana Eden wrote:

            
Each line's results as expected.
In the last line, you are going to use "&" instead of "&&"!

Uwe Ligges