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
Create new variables
Grouping and statistical functions
Joining datasets
13. Exercise 2


Next, we want some statistics about how math exam results differ between groups.


Calculate the min, max, and mean statistics using the result column from math. Use the groups defined by the group column. Name the statistics min_result, max_result, and mean_result, respectively.

Stuck? Here's a hint!

First use group_by() and then summarise(). Remember to use the pipe operators.


math %>%
  group_by(group) %>%
    min_result = min(result),
    max_result = max(result),
    mean_result = mean(result))