[R] if(foo == TRUE) .. etc

Rolf Turner rolf at math.unb.ca
Wed Apr 20 15:01:12 CEST 2005


Martin Maechler wrote:

> More generally, please, please, everyone :
> 
>  Replace
> 		if (something == TRUE)
> 	with    if (something)
>  and
> 		if (something.or.other == FALSE)
> 	with    if (!something.or.other)

	Amen!  And right on!  And you tell 'em!  And a few other
	exclamations, several of which are not suitable for a family
	program.

	That sort of syntax, such as offends Martin's sensibilities
	(and those of all Right Thinking Persons), appears to issue
	from the Department of Redundancy Department.

				cheers,

					Rolf Turner
					rolf at math.unb.ca




More information about the R-help mailing list