Exercise: Life expectancy in Austria
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:
- Use the dplyr
select()function and define
gapminder_austriaas the input tibble.
- Keep only the columns
lifeExpin the output dataset.
Note that the dplyr package is already loaded.
Submit code to see output here.