search for: tp3457976p3458300

Displaying 1 result from an estimated 1 matches for "tp3457976p3458300".

2011 Apr 18
3
Dangerous Bug with IF function of R
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) } q=q+0.1 } so in this code q is incremented from 0 to 1.1. but R do not capture print the value 1, 0.8 and 0.9 !! try to change (q==0.4) it gonna print 0.4. but if