The gapminder Dataset in R


The gapminder dataset is a good dataset to practice with. In R, gapminder is a DataFrame. A DataFrame is like an Excel sheet or a SQL table in that it has rows and columns.

Below is the list of columns, which in R are called variables. You only need to install it on your computer once. You don’t need to do that again. However, you will need to load that for each session. How do you load it? Type library(tidyverse) and run it.

  • country
  • continent
  • year
  • likeExp
  • pop
  • gdpPercap

How do I get gapminder? You can easily get the data in RStudio by installing the gapminder package. Load the library gapminder. Load the library dplyr.

Leave a Reply