gapminder: Gapminder Data on Global Health, Income, and Population

gapminderR Documentation

Gapminder Data on Global Health, Income, and Population

Description

The gapminder dataset provides global health, income, and population indicators for 195 countries over the period 19502019.

Usage

 data(gapminder) 

Format

The gapminder dataset, provided as a data frame, contains 13{,}650 rows and 8 columns (features) as follows:

  • country: Country name.

  • year: Calendar year of observation (1950–2019).

  • gdp: Gross domestic product (GDP) in USD, based on World Bank data.

  • life_expectancy: Average life expectancy at birth (in years).

  • population: National population size.

  • continent: Continent to which the country belongs.

  • iso_alpha: ISO 3166-1 alpha-3 country code.

  • world_group: A five-category geopolitical grouping of countries used for visualization, with levels The West, Asia, Latin America, Africa, and Others.

Details

For more information related to the dataset see:
https://www.gapminder.org/data/documentation/

Source

This dataset is originally from https://www.gapminder.org/resources/

References

Reza Mohammadi (2025). Data Science Foundations and Machine Learning with R: From Data to Decisions. https://book-data-science-r.netlify.app.

See Also

bank, churn, churn_mlc, churn_tel, adult, risk, cereal, advertising, marketing, drug, house, house_price, red_wines, white_wines, insurance, caravan, fertilizer, corona

Examples

data(gapminder)

str(gapminder)

liver documentation built on Feb. 19, 2026, 1:07 a.m.