[R] issues with identical()
Jean Eid
jeaneid at chass.utoronto.ca
Fri May 20 18:23:41 CEST 2005
Hi all, hope you having a nice day,
I ahve this weird results with identical (probably I am not understanding
correctly what it does ...)
I have these two data frames and I issue :
> identical(temp, temp1)
[1] FALSE
However, these data frames are Nx2 and when I issue:
> identical(temp[,2], temp1[,2])
[1] TRUE
> identical(temp[,1], temp1[,1])
[1] TRUE
and the results from str
> 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
Thank You
Jean
More information about the R-help
mailing list