I have a has that looks like this:
data = {abc -> [[date1, val1], [date2,val2]], def -> [[date1,val3], [date2,val4]]}
I want to join the abc and def elements so it's like this:
data = {join -> [[date1, val1+val3], [date2, val2+val4]] }
How do I go about this. Note that there are other elements in the hash that should not be modified.
I am assuming that
abc
,def
, andjoin
are actually Symbols.