I am attempting to work with two columns using R.
I want to be able to groupBy column 1, but total the value 2.
col1 col2
A 3
B 2
A 5
B 1
B 4
Example result should be:
A 8
B 7
I have looked at "aggregate", "summaryBy", and "by" both, but I am missing something because I am not getting the desired output.
Any help would be appreciated...