Skip to content
Prev 171862 / 398503 Next

Merge question

on 02/26/2009 11:52 AM Vadlamani, Subrahmanyam {FLNA} wrote:
Given the nature of your data, having the same column structure with
repeated keys, I would not use merge(), but rbind() the two data frames
together and then use aggregate():

DF <- rbind(Data1, Data2)
p1 d1 d2
1 xyz 10 25
2 xyz 11 15
p1 d1 d2
1 xyz 21 40


See ?rbind and ?aggregate

If you search the list archives:

  RSiteSearch("merge")

you will yield hundreds of posts showing the use of that particular
function.

HTH,

Marc Schwartz