Re: [R] issues with identical()

2005-05-21 Thread Jean Eid
Thank you all for pointing out the name of the variables.. I do apologize for not catching that,.. have a good day, Jean On Fri, 20 May 2005, Prof Brian Ripley wrote: > On Fri, 20 May 2005, Jean Eid wrote: > > > Hi all, hope you having a nice day, > > > > I ahve this weird results with identica

Re: [R] issues with identical()

2005-05-20 Thread Prof Brian Ripley
On Fri, 20 May 2005, Jean Eid wrote: Hi all, hope you having a nice day, I ahve this weird results with identical (probably I am not understanding correctly what it does ...) Why should a data frame with colunns pub_id faminc90 a data frame with colunns pub_id faminc be considered identical

Re: [R] issues with identical()

2005-05-20 Thread Peter Dalgaard
Jean Eid <[EMAIL PROTECTED]> writes: > > str(temp) > `data.frame': 7072 obs. of 2 variables: > $ pub_id : int 1 1000 10001 10002 10003 10004 10005 10006 10007 > $ faminc90: int -2 5998 19900 43000 35000 4 56538 61000 36000 39105 > > str(temp1) > `data.frame': 7072 obs. of 2 variable

Re: [R] issues with identical()

2005-05-20 Thread Duncan Murdoch
Jean Eid wrote: 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[,

RE: [R] issues with identical()

2005-05-20 Thread Liaw, Andy
> d1 <- data.frame(x=1:3, y=4:6) > d2 <- data.frame(x=1:3, z=4:6) > d3 <- data.frame(x=1:3, y=4:6) > identical(d1, d2) [1] FALSE > identical(d1, d3) [1] TRUE Andy > From: Jean Eid > > Hi all, hope you having a nice day, > > I ahve this weird results with identical (probably I am not > understa