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:
- Use the
select()
function and definegapminder_india
as the input tibble. - Keep only the columns
year
andpop
. - Rename the
pop
column topopulation
in the output tibble.
Note that the dplyr package is already loaded.
Results
Submit code to see output here.