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

From: David Winsemius <>
Date: Tue, 03 Jun 2008 22:44:23 -0700 (PDT)

Thanks for your reply.

In your last step If I create a duplicate ( two similar records ) # create a duplicate
vv[8,1] <- 7

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 what you are asking. Suspect you would need to do it either before the merge or after. I tried using the Extract operator on a merged dataset, but only succeeded in omitting the duplicated items, not both instances.


David Winsemius


View this message in context: Sent from the R help mailing list archive at mailing list PLEASE do read the posting guide and provide commented, minimal, self-contained, reproducible code. Received on Wed 04 Jun 2008 - 07:08:04 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Wed 04 Jun 2008 - 20:31:20 GMT.

Mailing list information is available at Please read the posting guide before posting to the list.

list of date sections of archive