Re: [R] Case statements in R

From: Roland Rau <>
Date: Tue, 29 Jul 2008 11:20:10 -0400

Dear all,

may I suggest to include this quotation of Patrick Burns in the fortunes package? :-)


Patrick Burns wrote:
> A good reason to use '&&' rather than '&' is if evaluating
> whatever is on the right will create an error if what is on
> the left is FALSE. '&&' and '||' stop if they already know
> the answer from seeing the left side. So they are likely faster
> by a few nanoseconds, but it's the ability to stop before you
> go off a cliff that is probably the key feature.
> mailing list PLEASE do read the posting guide and provide commented, minimal, self-contained, reproducible code. Received on Tue 29 Jul 2008 - 15:22:13 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Tue 29 Jul 2008 - 16:32:46 GMT.

Mailing list information is available at Please read the posting guide before posting to the list.

list of date sections of archive