I have a situation similar to this one:
I have two datasets, this one:
from | to | frequency |
---|---|---|
a | a | 2 |
a | b | 3 |
and this one:
from | to | frequency |
---|---|---|
a | a | 3 |
a | b | 4 |
Now, I want to merge the two, keeping "from" and "to" variables the same, since they are exactly the same BUT, meanwhile, SUMMING the frequency.
This is what we should get:
from | to | frequency |
---|---|---|
a | a | 5 |
a | b | 7 |