Re: [Rd] Dangerous Bug with IF function of R

2011-04-19 Thread Robert Lowe
> > I'm intrigued. After such a blatantly wrong claim about a bug in > R... what exactly are you claiming about Matlab here? > That it implements (software) decimal arithmetic on top of the > cpu-internal binary arithmetic ? probably rather not ... > Just for confirmation the same thing does

Re: [Rd] Dangerous Bug with IF function of R

2011-04-19 Thread Martin Maechler
> salmajj > on Mon, 18 Apr 2011 11:11:28 -0700 (PDT) writes: > Thanks a lot Petr it works!!! of course .. > You know for someone who is used to work with matlab it is not so obvious:) well, what do you mean with that? I'm intrigued. After such a blatantly wrong claim ab

Re: [Rd] Dangerous Bug with IF function of R

2011-04-18 Thread salmajj
Thanks a lot Petr it works!!! You know for someone who is used to work with matlab it is not so obvious:) -- View this message in context: http://r.789695.n4.nabble.com/Dangerous-Bug-with-IF-function-of-R-tp3457976p3458300.html Sent from the R devel mailing list archive at Nabble.com. __

Re: [Rd] Dangerous Bug with IF function of R

2011-04-18 Thread Petr Savicky
On Mon, Apr 18, 2011 at 09:12:41AM -0700, salmajj wrote: > hi! > there is a bug with the IF operator that is really dangerous! > please try the code below and if someone could explain to me why when (q is > equal to 0.8, 0.9 or 1) R do not print it? > > q=0 > for (j in 1:11){ > > if ((q==1)){ > p

Re: [Rd] Dangerous Bug with IF function of R

2011-04-18 Thread Brian Diggs
On 4/18/2011 9:12 AM, salmajj wrote: hi! there is a bug with the IF operator that is really dangerous! please try the code below and if someone could explain to me why when (q is equal to 0.8, 0.9 or 1) R do not print it? q=0 for (j in 1:11){ if ((q==1)){ print(q) }