Skip to content
Back to formatted view

Raw Message

Message-ID: <7F3D806A-A524-466B-93BE-7DB33CDE1B11@auckland.ac.nz>
Date: 2009-01-19T21:37:25Z
From: Rolf Turner
Subject: Compare matrices
In-Reply-To: <D3BF1A75-F900-431A-988B-E0A3C178C478@comcast.net>

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