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.

Output

Submit code to see output here.

Select columns from a data frame