I'm working on a database with repeated measures, and I need to calculate the sum of a numeric vector by category and remove repetitions.
Category Area
A 30A 15A 20B 45B 30C 12D 18D 22
And transform to:
Category Area
A 65B 75C 12D 40
How can i get this in R?