| gapminder | R Documentation |
The gapminder dataset provides global health, income, and population indicators for 195 countries over the period 1950–2019.
data(gapminder)
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.
For more information related to the dataset see:
https://www.gapminder.org/data/documentation/
This dataset is originally from https://www.gapminder.org/resources/
Reza Mohammadi (2025). Data Science Foundations and Machine Learning with R: From Data to Decisions. https://book-data-science-r.netlify.app.
bank,
churn,
churn_mlc,
churn_tel,
adult,
risk,
cereal,
advertising,
marketing,
drug,
house,
house_price,
red_wines,
white_wines,
insurance,
caravan,
fertilizer,
corona
data(gapminder)
str(gapminder)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.