Penguins Data Aggregation (dplyr)
If the file penguins.csv is not already in your working directory then download it into your working directory.
Load penguins.csv into R using read_csv().
- Use the
group_by()andsummarize()functions to get a count of the number of individuals in each species. - Use the
drop_na(),group_by(), andsummarize()functions to calculate the averagebill_length_mmfor each species. - Use the
drop_na(),group_by(), andsummarize()functions to calculate the maximumflipper_length_mmfor each species on each island. - Use the
filter(),drop_na(),group_by(), andsummarize()functions to get the mean body mass of Chinstrap penguins on each island. - Find the mean bill ratio (bill length / bill depth) for each species on each island.