Save up to $499! Grab all Python courses for $49 or all online courses we’ve ever launched for only $169. Only Feb 11-16. Happy Valentine's!
Final quiz


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


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))