[R] Compare objects

Peter Dalgaard p.dalgaard at biostat.ku.dk
Sun Nov 9 14:13:32 CET 2008


Heinz Tuechler wrote:
> At 13:26 09.11.2008, Leon Yee wrote:
>> Hi, friends
>>
>>    Is there any functions for object comparing? For example, I have two
>> list objects, and I want to know whether they are the same. Since the
>> the components of list are not necessary atomic, this kind of comparison
>> should be recursive. Does this kind of function exist?
>>    Thank you for your help!
>>
>> Leon
> 
> see maybe:
> all.equal()
> identical()

...and don't miss the compare package described in issue 8/2 of R News.

-- 
    O__  ---- Peter Dalgaard             Øster Farimagsgade 5, Entr.B
   c/ /'_ --- Dept. of Biostatistics     PO Box 2099, 1014 Cph. K
  (*) \(*) -- University of Copenhagen   Denmark      Ph:  (+45) 35327918
~~~~~~~~~~ - (p.dalgaard at biostat.ku.dk)              FAX: (+45) 35327907



More information about the R-help mailing list