[R] Case statements in R

Roland Rau roland.rproject at gmail.com
Tue Jul 29 17:20:10 CEST 2008

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.

More information about the R-help mailing list