[R] Compare matrices
Rolf Turner
r.turner at auckland.ac.nz
Mon Jan 19 22:37:25 CET 2009
On 20/01/2009, at 10:05 AM, David Winsemius (who should know better)
wrote:
<snip>
> B[which(B == FALSE)] <- NA
<snip>
This sort of syntax drives me, and all right-thinking people,
subclinically neurotic
(or as a psychiatrist would say, stark staring bonkers).
Admittedly it's not (quite) as bad as using ``Y==TRUE'' where ``Y''
is what is wanted, but it's pretty bad.
One should say ``B[!B] <- NA''.
cheers,
Rolf Turner
######################################################################
Attention:\ This e-mail message is privileged and confid...{{dropped:9}}
More information about the R-help
mailing list