[R] %in% with matrix of lists
Jeff Newmiller
jdnewmil at dcn.davis.ca.us
Sat Jul 30 20:35:40 CEST 2016
>> [1] TRUE FALSE TRUE FALSE ## NOT c(T,F,T,F)
>
>I'm not sure what you mean by NOT here. You get the same answer as I
>do, as far as I can see.
>
# valid R
T <- FALSE
# invalid R
TRUE <- FALSE
It is much much safer and clearer to use TRUE/FALSE than T/F. So
c( TRUE, FALSE, TRUE, FALSE ) may not always be the same as c(T,F,T,F).
I recommend reading the R Inferno to learn about this other such pitfalls.
--
Sent from my phone. Please excuse my brevity.
More information about the R-help
mailing list