[R] is.all.equal

Christoph Buser buser at stat.math.ethz.ch
Mon Jun 27 08:44:30 CEST 2005


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 at 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 at 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




More information about the R-help mailing list