These exercises cover the sections of Data wrangling with tidy.

All files can be found in the “dataset” directory.

 

Exercise 3

 

  1. Group df1 by the variable age_class.
  2. Filter to get the biggest 5 by the variable length in each group.
  3. Summarise this data frame over the variable length by calculating the mean.