Exercise: Americas Population

Use the %>% operator on the gapminder dataset and create a simple tibble to answer the following question: Which country on the continent Americas had the largest population in 2007?

  1. Define the gapminder tibble as the input
  2. Filter only the rows where the year column is equal to 2007
  3. Use a second layer of filter and keep only the rows where the continent column is equal to Americas
  4. Select only the columns: country and pop
  5. Arrange the results based on the pop column in a descending way

Submit code to see output here.

Create a data transformation pipeline