demo of the daily summary of the Coronavirus (Covid-19) total cases and deaths by county

covid19nytimes_counties_demo

Format

A tibble object

Source

New York Times, "We’re Sharing Coronavirus Case Data for Every U.S. County" article and https://github.com/nytimes/covid-19-datadata repository

Details

The dataset contains the daily summary of Coronavirus cases (total confirmed and total deaths), by county from the NY Times.

To get the latest data, use refresh_covid19nytimes_states.

Examples

data(covid19nytimes_states_demo) require(dplyr)
#> Loading required package: dplyr
#> #> Attaching package: ‘dplyr’
#> The following objects are masked from ‘package:stats’: #> #> filter, lag
#> The following objects are masked from ‘package:base’: #> #> intersect, setdiff, setequal, union
# Get top confirmed cases by county,state covid19nytimes_states_demo %>% filter(data_type == "cases_total") %>% filter(value == max(value))
#> # A tibble: 1 x 7 #> date location location_type location_code location_code_t… data_type #> <date> <chr> <chr> <chr> <chr> <chr> #> 1 2020-04-12 New York state 36 fips_code cases_to… #> # … with 1 more variable: value <dbl>