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:
- Use the dplyr
select()
function and definegapminder_austria
as the input tibble. - Keep only the columns
year
andlifeExp
in the output dataset.
Note that the dplyr package is already loaded.
Results
Submit code to see output here.