This functions pulls death COVID-19 confirmed and death data for US states from The New York Times GitHub repository downloads it. No data is stored within the package, so the data should continuously update over time as long as the links do not change.

us_states_daily()

Value

A dataframe/tibble

Details

Website:

- https://github.com/nytimes/covid-19-data

- https://raw.githubusercontent.com/nytimes/covid-19-data/master/us-states.csv

Examples

confirmed_st_daily <- R.COVID.19::us_states_daily()
#> Parsed with column specification: #> cols( #> date = col_date(format = ""), #> state = col_character(), #> fips = col_character(), #> cases = col_double(), #> deaths = col_double() #> )
head(confirmed_st_daily)
#> # A tibble: 6 x 5 #> date state fips cases deaths #> <date> <chr> <chr> <dbl> <dbl> #> 1 2020-03-13 Alabama 01 6 0 #> 2 2020-03-14 Alabama 01 12 0 #> 3 2020-03-15 Alabama 01 23 0 #> 4 2020-03-16 Alabama 01 29 0 #> 5 2020-03-17 Alabama 01 39 0 #> 6 2020-03-18 Alabama 01 51 0