Exercise: Use filter() with multiple rules
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.
- Use the
filter()function on the gapminder tibble.
- Filter all rows where the
yearvariable is equal to 2007 and the life expectancy
lifeExpis greater than 80!
Submit code to see output here.