Re: [R] identical values not so identical? newbie help please!

From: maiya <>
Date: Thu, 10 Mar 2011 11:44:28 -0800 (PST)

Aaah, it truly is wonderful, this technology! I guess I'm going to have to override it a bit though.. Along the lines of

tae <- ifesle(all.equal(obs, exp) == TRUE, 0, sum(abs(obs - exp)))

Do I like doing this? No. But short of reading the vast literature that exists on calculation precision - which would quite possibly result in me ending up using the same kludge as above - this is as satisfying a solution as I can hope for!

Thanks again guys!

View this message in context:
Sent from the R help mailing list archive at

______________________________________________ mailing list
PLEASE do read the posting guide
and provide commented, minimal, self-contained, reproducible code.
Received on Thu 10 Mar 2011 - 20:12:29 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Fri 11 Mar 2011 - 01:30:57 GMT.

Mailing list information is available at Please read the posting guide before posting to the list.

list of date sections of archive