Re: [R] is.all.equal

From: Christoph Buser <buser_at_stat.math.ethz.ch>
Date: Mon 27 Jun 2005 - 16:44:30 EST

Hi

It is corrected in the newer R-version. The help page now says:

'all.equal(x,y)' is a utility to compare R objects 'x' and 'y' testing "near equality". If they are different, comparison is still made to some extent, and a report of the differences is returned. Don't use 'all.equal' directly in 'if' expressions-either use 'isTRUE(all.equal(....))' or 'identical' if appropriate.

My R version is:

> version

platform x86_64-unknown-linux-gnu

arch     x86_64                  
os       linux-gnu               
system   x86_64, linux-gnu       
status                           
major    2                       
minor    1.1                     
year     2005                    
month    06                      
day      20                      
language R                       

Best regards,

Christoph Buser



Christoph Buser <buser@stat.math.ethz.ch> Seminar fuer Statistik, LEO C13
ETH (Federal Inst. Technology)	8092 Zurich	 SWITZERLAND
phone: x-41-44-632-4673		fax: 632-1228

http://stat.ethz.ch/~buser/

hadley wickham writes:
> Hi,
>
> The description of all.equal states "is.all.equal should be used for
> programming, typically in if expressions. It is a simple wrapper using
> identical as shown in the documentation there.", but is.all.equal is
> not explicitly defined there (although there is a hint in the comments
> that is.all.equal <- function(x,y) isTRUE(all.equal(x,y))).
>
> Could the documentation be corrected? (or even better, how about
> defining is.all.equal by default)
>
> Thanks,
>
> Hadley
>
> ______________________________________________
> R-help@stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html



R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Received on Mon Jun 27 16:53:02 2005

This archive was generated by hypermail 2.1.8 : Fri 03 Mar 2006 - 03:33:03 EST