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.
- Use the
filter()
function on the gapminder tibble. - Filter all rows where the
year
variable is equal to 2007 and the life expectancylifeExp
is greater than 80!
Results
Submit code to see output here.