We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Firefox.

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.


Submit code to see output here.