[R] what don't I get about numeric/double comparisons in R way?

Jim Lemon jim at bitwrit.com.au
Thu Dec 31 05:10:21 CET 2009

On 12/31/2009 02:41 PM, donahchoo at me.com wrote:
> Hi,
> I'm pretty much an R noob and I'm missing some paradigm in R I think.  
> I can't figure our how to compare numerics.  here's a transcript of my 
> tests.  Any pointers?
Hi donahchoo,
You're comparing the printed value of range_sd, which has been 
truncated, to the actual value. As the printout says, the difference is 
small, but present. If you set range_sd to the printed value:


the comparisons will return TRUE.


More information about the R-help mailing list