Skip to content
Prev 166926 / 398503 Next

Odp: NA-values and logical operation

Hi


Patrick Hausmann <Patrick.Hausmann at uni-bremen.de> napsal dne 13.01.2009 
18:18:38:
Not so. See help page for isTRUE

isTRUE(x) is an abbreviation of identical(TRUE, x), and so is true if and 
only if x is a length-one logical vector with no attributes (not even 
names). 
 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

which is not your case

I would use all
[1] FALSE    NA  TRUE FALSE    NA


or check rowSums
[1]  2 NA  3  2 NA
[1] 2 2 3 2 2

Depending what rows you want to have true.

Regards

Petr
Message-ID: <OF6718F87C.77DDC628-ONC125753E.002DD55A-C125753E.002E5A40@precheza.cz>
In-Reply-To: <20090113181838.e6m9n38n30gko00g@webmail.uni-bremen.de>