Re: [R] Problem with <= (less than or equal): not giving the expected result

2016-04-05 Thread Rainer Johannes
what the experiment died of. ~ Sir Ronald Aylmer Fisher The plural of anecdote is not data. ~ Roger Brinner The combination of some data and an aching desire for an answer does not ensure that a reasonable answer can be extracted from a given body of data. ~ John Tukey 2016-04-05 14:46

Re: [R] Problem with <= (less than or equal): not giving the expected result

2016-04-05 Thread Rainer Johannes
urn(check.vector) } See: ?all.equal Hth, Adrian On Tue, Apr 5, 2016 at 2:34 PM, Rainer Johannes mailto:johannes.rai...@eurac.edu>> wrote: Dear All, I have the following problem: I have a function in which I check if the difference between values is smaller or equal to a certain thresh

[R] Problem with <= (less than or equal): not giving the expected result

2016-04-05 Thread Rainer Johannes
Dear All, I have the following problem: I have a function in which I check if the difference between values is smaller or equal to a certain threshold. I however realized that I might get there some unexpected results: > abs(1 - 0.95) >= 0.05 [1] TRUE ## So that’s fine, but: > abs(1 - 0.95) <=