Skip to contents

This dataset provides country-level data on life expectancy, GDP per capita, and population. It is included in the `gapminder` package. For detailed information, please refer to the [gapminder documentation](https://cran.r-project.org/package=gapminder).

Usage

gapminder

Format

A data frame with 1704 rows and 6 variables.

country

Factor with country names.

continent

Factor with continent names.

year

Integer.

lifeExp

Numeric.

pop

Integer.

gdpPercap

Numeric.

Source

This dataset is sourced from the `gapminder` package.

Examples

data(gapminder)
head(gapminder)
#> # A tibble: 6 × 6
#>   country     continent  year lifeExp      pop gdpPercap
#>   <fct>       <fct>     <int>   <dbl>    <int>     <dbl>
#> 1 Afghanistan Asia       1952    28.8  8425333      779.
#> 2 Afghanistan Asia       1957    30.3  9240934      821.
#> 3 Afghanistan Asia       1962    32.0 10267083      853.
#> 4 Afghanistan Asia       1967    34.0 11537966      836.
#> 5 Afghanistan Asia       1972    36.1 13079460      740.
#> 6 Afghanistan Asia       1977    38.4 14880372      786.