Hello
Please help: i 'm merging two dataset and the configuration makes that 'merge' function is duplicating rows (multiplying row between both matrix). Here is a sample to merge foo1 with foo2 to get foo3:
foo1:
Key code
103 50160
103 50190
foo2:
Key factor
103 9
103 0
103 0
103 12
103 8
103 21
foo3: merge(foo1, foo2, by = "Key")
Key factor
103 9
103 9
103 0
103 0
103 0
103 0
103 8
103 8
103 21
103 21
103 12
103 12
Thank you!