On January 21th at 14:15 UTC , progression through exercises will be unavailable for 10 minutes due to a planned maintenance break.
Deals Of The Week - hours only!Up to 80% off on all courses and bundles.-Close
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))