Update the county-level data from the New York Times on Covid-19
Pulls from the open source data at https://www.nytimes.com/article/coronavirus-county-data-us.html
including cumulative cases and deaths. Returns the data in the covid19R standard tidy format for easy use.
Location data is returned as
See https://github.com/nytimes/covid-19-data for extensive methodology description and license. Please
follow the license guidelines at https://github.com/nytimes/covid-19-data/blob/master/LICENSE if you plan
to use the data for public display.
A tibble object
date - The date in YYYY-MM-DD form
location - The name of the location as provided by the data source. The counties dataset provides county and state. They are combined and separated by a
,, and can be split by
tidyr::separate(), if you wish.
location_type - The type of location using the covid19R controlled vocabulary.
location_code - A standardized location code using a national or international standard. In this case, FIPS state or county codes. See https://en.wikipedia.org/wiki/Federal_Information_Processing_Standard_state_code and https://en.wikipedia.org/wiki/FIPS_county_code for more
location_code_type The type of standardized location code being used according to the covid19R controlled vocabulary. Here we use
data_type - the type of data in that given row. Includes
total_deaths, cumulative measures of both.
value - number of cases of each data type
New York Times, "We’re Sharing Coronavirus Case Data for Every U.S. County" article and https://github.com/nytimes/covid-19-datadata repository
1 2 3 4 5
## Not run: # update the data covid19nytimes_counties <- refresh_covid19nytimes_counties() ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.