I have a data set that I would like to sum up all of Action_1 and Action_2 and according to USER_IDs (eventually removing duplicates in USER_ID)
User_ID Action_1 Action_2
user_001 1 1
user_001 1 0
user_001 0 1
user_002 1 1
user_002 0 1
...
Outcome:
User_ID Action_1 Action_2
user_001 2 2
user_002 1 2
...
Is there a way to accomplish this in R? I do apologize in advance as I do not know the terminology of this technique.
Thanks.