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/
Reza Mohammadi (2025). Data Science Foundations and Machine Learning with R: From Data to Decisions. https://book-data-science-r.netlify.app.
bank,
churnCredit,
churn,
churnTel,
adult,
risk,
cereal,
advertising,
marketing,
drug,
house,
housePrice,
redWines,
whiteWines,
insurance,
caravan,
fertilizer,
corona
data(gapminder)
str(gapminder)
Run the code above in your browser using DataLab