# Load library
library(tidyverse)
# Import data
world_life_expectancy <- read_csv(file = "https://raw.githubusercontent.com/zief0002/epsy-5261/main/data/world-life-expectancy.csv")
# View data
world_life_expectancyworld-life-expectancy.csv
The world-life-expectancy.csv data include information on the life expectancy for countries.
The attributes included in the data are:
country: Country namelife_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.
Preview
# A tibble: 207 × 2
country life_expect
<chr> <dbl>
1 Afghanistan 62.6
2 Albania 77.0
3 Algeria 74.4
4 Angola 62.3
5 Antigua and Barbuda 78.8
6 Argentina 75.9
7 Armenia 72.2
8 Aruba 75.7
9 Australia 83.2
10 Austria 81.2
# ℹ 197 more rows