1. Learn
  2. /
  3. Courses
  4. /
  5. Communicating with Data in the Tidyverse

Exercise

Some summary statistics

Use dplyrs group_by() and summarize() to compute summary statistics for both years.

Instructions

100 XP
  • Have a look at the structure of the ilo_data set with str().
  • After this, group the data by year using the group_by() function.
  • Then, calculate the mean of both variables hourly_compensation and working_hours using the summarize() function.