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()

Value

A dataframe/tibble

Details

Website:

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

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

Examples

confirmed_daily <- R.COVID.19::us_counties_daily()
#> Parsed with column specification: #> cols( #> date = col_date(format = ""), #> county = col_character(), #> state = col_character(), #> fips = col_character(), #> cases = col_double(), #> deaths = col_double() #> )
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