library(tidyverse)── Attaching core tidyverse packages ──────────────────────── tidyverse 2.0.0 ──
✔ dplyr 1.1.4 ✔ readr 2.1.5
✔ forcats 1.0.0 ✔ stringr 1.5.1
✔ ggplot2 3.5.0 ✔ tibble 3.2.1
✔ lubridate 1.9.3 ✔ tidyr 1.3.1
✔ purrr 1.0.2
── Conflicts ────────────────────────────────────────── tidyverse_conflicts() ──
✖ dplyr::filter() masks stats::filter()
✖ dplyr::lag() masks stats::lag()
ℹ Use the conflicted package (<http://conflicted.r-lib.org/>) to force all conflicts to become errors
library(readr)
global_health <- read_csv("global_health.csv")Rows: 1880 Columns: 29
── Column specification ────────────────────────────────────────────────────────
Delimiter: ","
chr (2): Country, Country_Code
dbl (27): Year, Fertility_Rate, Urban_Population_Percent, Total_Population, ...
ℹ Use `spec()` to retrieve the full column specification for this data.
ℹ Specify the column types or set `show_col_types = FALSE` to quiet this message.
names(global_health) [1] "Country" "Country_Code"
[3] "Year" "Fertility_Rate"
[5] "Urban_Population_Percent" "Total_Population"
[7] "Water_Access_Percent" "Unemployment_Rate"
[9] "Sanitary_Expense_Per_GDP" "Life_Expectancy"
[11] "Life_Expectancy_Female" "Life_Expectancy_Male"
[13] "Infant_Deaths" "GDP_Per_Capita"
[15] "Hospital_Beds_Per_1000" "Female_Population"
[17] "Male_Population" "Alcohol_Consumption_Per_Capita"
[19] "Immunization_Rate" "Sanitary_Expense_Per_Capita"
[21] "CO2_Exposure_Percent" "Air_Pollution"
[23] "Labour_Force_Total" "Tuberculosis_Per_100000"
[25] "Suicide_Rate_Percent" "Obesity_Rate_Percent"
[27] "Underweight_Rate_Percent" "Overweight_Rate_Percent"
[29] "Safe_Water_Access_Percent"