I am very new to R and this is my first stack overflow question so I expect this may be a little rough. I have a data frame (from a .csv) in the following structure:
FeatureName Uuid Count
ClickHeadline ABC1 17
ChangeSetting ABC1 3
ClickHeadline CBA2 5
ChangeSetting CBA2 7
SomethingElse CBA2 5
I am trying to figure out how to make a new data frame in which the unique values of FeatureName, the factors ClickHeadline, ChangeSetting, SomethingElse are now variables summing over the Count for each Uuid. So the new data frame I want would be:
Uuid ClickHeadline ChangeSetting SomethingElse
ABC1 17 3 0
CBA2 5 7 5
I feel like I should be able to do this over the aggregate function, but I can't figure out how to tell it to look sum over the counts by a variable. I know I'm in way over my head but can anybody help me figure this out?