Create new variables
Grouping and statistical functions
Joining datasets
Summary
13. Exercise 2

Instruction

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

Exercise

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.

Type:

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