# Load library
library(tidyverse)
# Import data
countries <- read_csv(file = "https://raw.githubusercontent.com/zief0002/epsy-5261/main/data/countries.csv")
# View data
countriescountries.csv
The countries.csv data include information from the year 2019 on countries.
The attributes included in the data are:
country: Country name- `region``: World region for the country (East Asia & Pacific, Europe & Central Asia, Latin America & Caribbean, Middle East & North Africa, North America, South Asia, Sub-Saharan Africa)
population: Population of the countryarea: Area of the country (in km sq.)gdp: The per person gross domestic product (GDP) adjusted for differences in purchasing power (in U.S. dollars)life_expect: Life expectancy for all sexes (in years). This is the number of years a newborn infant would be expected to live if the current mortality rates at different ages were to stay the same.birth_rate: Number of live births expressed per 1,000 people in the populationfertility: Number of live births per 1,000 females of childbearing age (between the ages of 15 and 44 years)death_rate: Number of deaths divided by the person-years lived by the population over that period expressed per 1,000 people in the populationinfant_mortality: Infant mortality rate for all sexes per 1,000 live births
Preview
# A tibble: 196 × 10
country region population area gdp
<chr> <chr> <dbl> <dbl> <dbl>
1 Afghanistan South Asia 38041754 652860 507.
2 Albania Europe & Central Asia 2854191 28750 5353.
3 Algeria Middle East & North Africa 43053054 2381741 3974.
4 Angola Sub-Saharan Africa 31825295 1246700 2791.
5 Antigua and Barbuda Latin America & Caribbean 97118 440 17113.
6 Argentina Latin America & Caribbean 44938712 2780400 9912.
7 Armenia Europe & Central Asia 2957731 29740 4623.
8 Aruba Latin America & Caribbean 106314 180 NA
9 Australia East Asia & Pacific 25365745 7741220 55057.
10 Austria Europe & Central Asia 8879920 83879 50122.
life_expect birth_rate fertility_rate death_rate infant_mortality
<dbl> <dbl> <dbl> <dbl> <dbl>
1 64.8 31.8 61.3 6.28 46.5
2 78.6 11.6 19.5 8.08 8.6
3 76.9 23.6 9.60 4.72 20
4 61.1 40.2 145. 7.98 50.2
5 77.0 15.1 40.9 6.42 5.8
6 76.7 16.8 62.3 7.60 8.2
7 75.1 13.6 20.3 9.84 10.5
8 76.3 11.8 19.7 9.20 NA
9 82.9 12.1 10.9 6.7 3.1
10 81.8 9.6 6.75 9.4 2.8
# ℹ 186 more rows