Exercise: Life expectancy in Austria

The gapminder_austria dataset contains information about the economic and demographic change in Austria over the last decades. To inspect how the life expectancy in Austria changed over time, create a subset of the tibble that contains only the necessary columns for this task:

  1. Use the dplyr select() function and define gapminder_austria as the input tibble.
  2. Keep only the columns year and lifeExp in the output dataset.

Note that the dplyr package is already loaded.

Output

Submit code to see output here.

Select columns from a data frame