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