Re: [R] merging two data sets with no column header

2008-06-04 Thread Henrique Dallazuanna
Perhaps something about like this: merge(vv[-c(which(duplicated(vv))-1, which(duplicated(vv))),], vv2, by=1) On Wed, Jun 4, 2008 at 3:08 PM, kayj <[EMAIL PROTECTED]> wrote: > > > > Thanks a lot for your help, I appreciate it. > > > > > David Winsemius wrote: > > > > Thanks for your reply. > > >

Re: [R] merging two data sets with no column header

2008-06-04 Thread kayj
Thanks a lot for your help, I appreciate it. David Winsemius wrote: > > Thanks for your reply. > > In your last step If I create a duplicate ( two similar records ) > # create a duplicate > vv[8,1] <- 7 > vv[8,2]<-'g' > > and then I merge vv with vv2 ,both duplicates are merged. Is the

Re: [R] merging two data sets with no column header

2008-06-03 Thread David Winsemius
Thanks for your reply. In your last step If I create a duplicate ( two similar records ) # create a duplicate vv[8,1] <- 7 vv[8,2]<-'g' and then I merge vv with vv2 ,both duplicates are merged. Is there a way to tell R to merge only the unique records. -- I don't think merge will do wha

Re: [R] merging two data sets with no column header

2008-06-03 Thread kayj
Thanks for your reply. In your last step If I create a duplicate ( two similar records ) # create a duplicate vv[8,1] <- 7 vv[8,2]<-'g' and then I merge vv with vv2 ,both duplicates are merged. Is there a way to tell R to merge only the unique records. Thanks and appreciate your help. --

Re: [R] merging two data sets with no column header

2008-06-02 Thread David Winsemius
kayj <[EMAIL PROTECTED]> wrote in news:[EMAIL PROTECTED]: > > I have two data sets data1 and data2 with no column names( No > header). The first coluimn in both data sets represents the case ID. > How can I tell R to merge the two data sets by the case ID if there > is no header? Also, In data1

[R] merging two data sets with no column header

2008-06-02 Thread kayj
I have two data sets data1 and data2 with no column names( No header). The first coluimn in both data sets represents the case ID. How can I tell R to merge the two data sets by the case ID if there is no header? Also, In data1 I have more cases and I would like the result of the merge to have al