Exercise: Austrian Life Expectancy

Use the %>% operator on the gapminder data set and create a simple data frame to answer the following question: How did the life expectancy in Austria change over the last decades? Required packages are already loaded.

  1. Define the gapminder data frame as the base data frame
  2. Filter only the rows where the country column is equal to Austria by piping gapminder to the filter() function.
  3. Select only the columns: year and lifeExp from the filtered result.
  4. Arrange the results based on the year column based on the selected columns.
Output

Submit code to see output here.

Create a data transformation pipeline