states-2019.csv
The data in states-2019.csv include statistics collected from Wikipedia, the 2019 American Community Survey, and the National Centers for Environmental Information. The attributes in the data are:
state
: State/territory namelife_expectancy
: Life expectancy (in years)population
: Population estimate (in millions)income
: Per capita income (in thousands of dollars)illiteracy
: Illiteracy rate (in percent)murder
: Murder and non-negligent manslaughter rate (per 100,000 population)hs_grad
: Percentage of high school graduatesfrost
: Mean number of days with minimum temperature below freezingarea
: Land area (in square miles)
Preview
Code
# Import data
= readr::read_csv(file = "https://raw.githubusercontent.com/zief0002/pensive-giraffe/main/data/states-2019.csv")
usa
# View data
usa
state <chr> | life_expectancy <dbl> | population <dbl> | income <dbl> | illiteracy <dbl> | murder <dbl> | hs_grad <dbl> | frost <dbl> | area <dbl> |
---|---|---|---|---|---|---|---|---|
Alabama | 75.4 | 4.903185 | 23.606 | 14.8 | 7.8 | 85.3 | 42.8 | 5.0750 |
Alaska | 78.8 | 0.731545 | 33.062 | 9.2 | 8.2 | 92.4 | 199.7 | 57.0641 |
Arizona | 79.9 | 7.278717 | 25.715 | 13.1 | 5.1 | 86.5 | 90.8 | 11.3642 |
Arkansas | 75.9 | 3.017804 | 22.883 | 13.7 | 7.2 | 85.6 | 62.5 | 5.2075 |
California | 81.6 | 39.512223 | 30.441 | 23.1 | 4.4 | 82.5 | 27.5 | 15.5973 |
Colorado | 80.5 | 5.758736 | 32.357 | 9.9 | 3.7 | 91.1 | 167.6 | 10.3730 |
Connecticut | 80.9 | 3.565287 | 39.373 | 8.6 | 2.3 | 90.2 | 88.5 | 0.4845 |
Delaware | 78.4 | 0.973764 | 30.488 | 10.7 | 5.0 | 89.3 | 114.0 | 0.1955 |
District of Columbia | 78.6 | 0.705749 | 45.877 | 19.0 | 5.9 | 90.3 | 97.0 | 0.0061 |
Florida | 80.0 | 21.477737 | 26.582 | 19.7 | 5.2 | 87.6 | 7.1 | 5.3997 |