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.
> >
>
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
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
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.
--
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
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
6 matches
Mail list logo