Exercise: European GDP Per Capita

Use the %>% operator on the gapminder dataset and create a simple tibble to answer the following question: Which European country had the highest GDP per capita in 2007? Required packages are already loaded.

  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 Europe
  4. Select only the columns: country and gdpPercap
  5. Arrange the results based on the gdpPercap column in a descending way
Output

Submit code to see output here.

Create a data transformation pipeline