Skip to content
Back to formatted view

Raw Message

Message-ID: <x2vf5du9r7.fsf@turmalin.kubism.ku.dk>
Date: 2005-05-20T16:45:16Z
From: Peter Dalgaard
Subject: issues with identical()
In-Reply-To: <Pine.SGI.4.40.0505201216270.4141448-100000@origin.chass.utoronto.ca>

Jean Eid <jeaneid at chass.utoronto.ca> writes:

> > str(temp)
> `data.frame':	7072 obs. of  2 variables:
>  $ pub_id  : int  10000 1000 10001 10002 10003 10004 10005 10006 10007
>  $ faminc90: int  -2 5998 19900 43000 35000 40000 56538 61000 36000 39105
> > str(temp1)
> `data.frame':	7072 obs. of  2 variables:
>  $ pub_id: int  10000 1000 10001 10002 10003 10004 10005 10006 10007 10008
>  $ faminc: int  -2 5998 19900 43000 35000 40000 56538 61000 36000 39105
> 
> The question is why are the objects different. How else can I tell what is
> the difference

Just look more carefully. The _names_ differ.

-- 
   O__  ---- Peter Dalgaard             Blegdamsvej 3  
  c/ /'_ --- Dept. of Biostatistics     2200 Cph. N   
 (*) \(*) -- University of Copenhagen   Denmark      Ph: (+45) 35327918
~~~~~~~~~~ - (p.dalgaard at biostat.ku.dk)             FAX: (+45) 35327907