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}}

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to