We don't support your browser anymore

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

Exercise: Rename columns

The gapminder_india dataset contains information about the economic and demographic change in India over the last decades. Inspect how the population in India changed over time:

  1. Use the select() function and define gapminder_india as the input tibble.
  2. Keep only the columns year and pop.
  3. Rename the pop column to population in the output tibble.

Note that the dplyr package is already loaded.


Submit code to see output here.