Final quiz

Instruction

Now, we’d like to know how much the residents of Hidoni spend on different things in general.

Exercise

Calculate the mean and median expenses (name the columns mean and median, respectively) for the different categories of spending. Use the data found in survey_long.
Note: use the %>% operator.

Stuck? Here's a hint!

Group by column category, and calculate statistics on the value column. Type:

survey_long %>%
group_by(category) %>%
summarise(mean = mean(value), median = median(value))