Learn R Programming

liver (version 1.27)

gapminder: 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 \(1950\)--\(2019\).

Usage

data(gapminder)

Arguments

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/

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

Run this code
data(gapminder)

str(gapminder)

Run the code above in your browser using DataLab