I have a dataframe with the following format:
typeA typeB  valueA valueB valueC
A      16      1      1      1
A      16      2      1      0
B      16      1      0      0
B      16      0      0      0
B      22      2      2      2
...
How can I sum all columns for every group? that I have the following output:
typeA typeB valueA valueB valueC
A     16     3      2       1
B     16     1      0       0
B     22     2      2       2
...
 
    