Description Usage Format Details Source See Also Examples
A recent download of the Gapminder data on life expectancy, GDP per capita, Gini coefficient, and population by country.
1 |
The main data frame gapminder
has 40,953 rows and 7 variables:
factor with 142 levels
factor with 5 levels
ranges from 1800 to 2018
life expectancy at birth, in years
population
GDP per capita (US$, inflation-adjusted)
Gini coefficient of inequality
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.
http://www.gapminder.org/data/
gapminder
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))
}
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.