Looking to do something that (I assume is pretty basic) using R. I have a very long dataset that looks like this:
 Country  A  B  C  D
 Austria  1  1  4  1
 Austria  5  2  6  1
 Austria  2  8  1  2
 Belgium  6  9  9  3
 Belgium  8  1  9  2
I want to be able to Merge all of the rows with the same Country, and sum all of the numbers within the respective columns, so it looks something like this:
 Country  A  B  C  D
 Austria  8  11 11 4
 Belgium  14 10 18 5
Thanks for your help!
 
     
     
     
    