s-news
[Top] [All Lists]

Re: strange all.equal() behavior

To: "'Mann, Brad'" <Brad.Mann@citadelgroup.com>, "S-News (E-mail)" <s-news@lists.biostat.wustl.edu>
Subject: Re: strange all.equal() behavior
From: Bob Baskin <BobBaskin@westat.com>
Date: Thu, 30 May 2002 13:54:19 -0400
Working data will be in c:\splus2k\cmd\BASKIN_B\_Data 
> all.equal( as.single(8) , 4 )
[1] "Mean relative difference: 0.5"
> all.equal( 8, 4 )
[1] "Mean relative difference: 0.5"
> 

i'm running s+2000 on a windoze 98 machine

-----Original Message-----
From: Mann, Brad [mailto:Brad.Mann@citadelgroup.com]
Sent: Thursday, May 30, 2002 12:44 PM
To: S-News (E-mail)
Subject: [S] strange all.equal() behavior



Hello.  I'm running S-Plus 6.0, rel 4 on NT. When I try  

   all.equal( 8, 4 )

I get the correct answer of a 50% relative difference, but when I try

   all.equal( as.single(8) , 4 )

I get the seemingly incorrect and certainly unintuitive value T.  
Is this a bug, or are there some subtleties with int/single/double's 
and all.equal()? Thanks for any info,

Brad 

--------------------------------------------------------------------
This message was distributed by s-news@lists.biostat.wustl.edu.  To
unsubscribe send e-mail to s-news-request@lists.biostat.wustl.edu with
the BODY of the message:  unsubscribe s-news


<Prev in Thread] Current Thread [Next in Thread>