Exercise: Use filter() with multiple rules

The gapminder dataset contains economic and demographic data about various countries since 1952. Filter the tibble and inspect which countries had a life expectancy over 80 years in the year 2007! The required packages are already loaded.

  1. Use the filter() function on the gapminder tibble.
  2. Filter all rows where the year variable is equal to 2007 and the life expectancy lifeExp is greater than 80!
Output

Submit code to see output here.

Filter data frame rows