Hi,
I am trying to write a function that does simple aggregation by group.
Suppose I have two variables, groupid and values:
groupid values
1 3
1 2
1 4
2 2
2 2
2 3
The output I want is 2x1 vector,
9
7
Is there any easy way to go about this?
Thank you!