Exercise: Use filter() with a single expression

The gapminder dataset contains economic and demographic data about various countries since 1952.

Inspect the data for a single year by using the filter() function.

  1. Apply the filter() function on the gapminder dataset
  2. Keep only the rows where the year is equal to 2007

Note that the dplyr and gapminder packages are already loaded.

Output

Submit code to see output here.

Filter data frame rows