R/us_counties_daily.R
us_counties_daily.Rd
This functions pulls death COVID-19 confirmed and death data for US counties 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_counties_daily()
A dataframe/tibble
Website:
- https://github.com/nytimes/covid-19-data
- https://raw.githubusercontent.com/nytimes/covid-19-data/master/us-counties.csv
confirmed_daily <- R.COVID.19::us_counties_daily()#>#> #>head(confirmed_daily)#> # A tibble: 6 x 6 #> date county state fips cases deaths #> <date> <chr> <chr> <chr> <dbl> <dbl> #> 1 2020-03-24 Autauga Alabama 01001 1 0 #> 2 2020-03-25 Autauga Alabama 01001 4 0 #> 3 2020-03-26 Autauga Alabama 01001 6 0 #> 4 2020-03-27 Autauga Alabama 01001 6 0 #> 5 2020-03-28 Autauga Alabama 01001 6 0 #> 6 2020-03-29 Autauga Alabama 01001 6 0