demo of the daily summary of the Coronavirus (Covid-19) total cases and deaths by state.
covid19nytimes_states_demo
A tibble object
New York Times, "We’re Sharing Coronavirus Case Data for Every U.S. County" article and https://github.com/nytimes/covid-19-datadata repository
The dataset contains the daily summary of Coronavirus cases (total confirmed and total deaths), by state from the NY Times.
To get the latest data, use refresh_covid19nytimes_states
data(covid19nytimes_states_demo) require(dplyr) # Get top confirmed cases by 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>