Practice

Now you can practice putting together all of the {dplyr} functions to solve some cleaning and wrangling problems.

  1. Create a table that shows how much each penguin’s weight differs from the average weight of all penguins. Include island and sex in the resulting table.
Answer
  1. For each penguin species find the percent that live on each island.
Answer
  1. Find the ratio of bill length to bill depth and add a category for each penguins bill to say “wide”, “narrow”, or “average”. Those with a ratio of less than 2 should “wide”, a ratio of more than 3 should be “narrow”, and all the rest should be “average”. Only show species and bill measurements in the resulting table.
Answer
  1. How many penguins are above average for all statistics (bill measures, weight, and flipper size)? Divide the results into groups by sex and species.
Answer
  1. Create a table that shows the average flipper length for each combination of species and island and add a ranking value that shows their order from longest to shortest.
Answer