Re: [R] Another R syntax question

2003-09-03 Thread Thomas Lumley
On Wed, 3 Sep 2003, Richard A. O'Keefe wrote: The file src/library/base/R/print.R contains this line: x0 - xm[okP]==0 != (as.numeric(Cf[okP])==0) I didn't know R allowed that, and I wonder if it is deliberate? Well, I'm not surprised that it's syntactically valid, but I wouldn't know

Re: [R] Another R syntax question

2003-09-03 Thread Peter Dalgaard BSA
Thomas Lumley [EMAIL PROTECTED] writes: I think it's clear that it will parse as either (x==y) != z or x == (y!=z) but not which. The rule is that everything is left associative except assignment and exponentiation (and IF, for some reason). If in doubt, just remember that it is the