I've been trying to make a graph using either barplot or ggplot but first I need to combine different observations from the same variable.
My variable has different observations depending on how relevant a subject is for each user. like this:
Count Activity
10 Bikes for fitness reasons
22 Runs for fitness reasons
12 Bikes to commute to work
10 Walks to commute to work
5 Walks to stay healthy
My idea is to merge the observations from the "Activity" variable so it looks like this:
Count Activity
22 Bikes
22 Runs
15 Walks
So, I don't care the reason for them to do the activity, I just want to merge them so I can put that info into a bar graph.