[R] Numbers that look equal, should be equal, but if() doesn'tsee as equal (repost with code included)

Simon Fear Simon.Fear at synequanon.com
Wed May 28 18:17:19 CEST 2003

No problem, equal.enough(1+1,3,d.p.zero=10) !

But seriously, this is WHY NOT do that substitution: it helps me
that I am not in fact truly testing for numeric identity. 


-----Original Message-----
From: Barry Rowlingson [mailto:B.Rowlingson at lancaster.ac.uk]
Sent: 28 May 2003 17:03
To: Simon Fear
Cc: r-help at stat.math.ethz.ch
Subject: Re: [R] Numbers that look equal, should be equal, but if()
doesn'tsee as equal (repost with code included)

  Next time on useless R tips: 1 + 1 = 3


Simon Fear
Senior Statistician
Syne qua non Ltd
Tel: +44 (0) 1379 644449
Fax: +44 (0) 1379 644445
email: Simon.Fear at synequanon.com
web: http://www.synequanon.com
Number of attachments included with this message: 0
This message (and any associated files) is confidential and 
contains information which may be legally privileged.  It is 
intended for the stated addressee(s) only.  Access to this 
email by anyone else is unauthorised.  If you are not the 
intended addressee, any action taken (or not taken) in 
reliance on it, or any disclosure or copying of the contents of 
it is unauthorised and unlawful.  If you are not the addressee, 
please inform the sender immediately and delete the email 
from your system.

This message and any associated attachments have been 
checked for viruses using an internationally recognised virus 
detection process.  However, Internet communications cannot 
be guaranteed to be secure or error-free as information could 
be intercepted, corrupted, lost, destroyed, arrive late or 
incomplete. Therefore, we do not accept responsibility for any 
errors or omissions that are present in this message, or any 
attachment, that have arisen as a result of e-mail transmission.  
If verification is required, please request a hard-copy version. 
Any views or opinions presented are solely those of the author 
and do not necessarily represent those of Syne qua non.

More information about the R-help mailing list