gapminder_2019: Gapminder data.

Description Usage Format Details Source See Also Examples

Description

A recent download of the Gapminder data on life expectancy, GDP per capita, Gini coefficient, and population by country.

Usage

1

Format

The main data frame gapminder has 40,953 rows and 7 variables:

country

factor with 142 levels

continent

factor with 5 levels

year

ranges from 1800 to 2018

lifeExp

life expectancy at birth, in years

pop

population

gdpPercap

GDP per capita (US$, inflation-adjusted)

giniPercap

Gini coefficient of inequality

Details

While the data goes back to 1800, most of it prior to a couple of decades ago is either filler or probably nonsense. See the gapminder package for a smaller version.

Source

http://www.gapminder.org/data/

See Also

gapminder

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
library(noiris)
str(gapminder_2019)
gapminder_2019
summary(gapminder_2019)

if (require("dplyr")) {
gapminder_2019 %>%
  filter(year == 2007) %>%
  group_by(continent) %>%
  summarise(lifeExp = median(lifeExp))
}

m-clark/noiris documentation built on Sept. 9, 2019, 9:08 a.m.