Session Ready
Exercise

Summary statistics by group

Building on the last exercise, in this exercise you will continue to use the dplyr summarise(), summarise_all() functions along with the group_by() function to compute custom statistics for specific variables by groups of interest such as the sex and adult categories.

The abaloneKeep dataset and dplyr package are already loaded for you.

Instructions
100 XP
  • Get minimum, mean, standard deviation, median, and maximum for age by sex using summarise_all() and group_by().
  • Get median, 25th and 75th percentiles for whole weight by adult and name output as median_wweight, q1_wweight and q3_wweight.