Description Usage Arguments Value Examples
View source: R/data_pull_fcns.R
This function uses the REST API to pull down the data that are currently posted at https://data.dhsgis.wi.gov/datasets/covid-19-historical-data-table/ using the GeoJSON REST API. Note: currently it does not pull down any geometry data used to produce maps.
1 | pull_histTable(end_date = NULL)
|
end_date |
(default = NULL) If specified it is the end date of the time series that you wish to analyze. It should be something coercible to Date format with as.Date. If you want all data leave it blank. |
a cleaned version of the COVID-19 Historical Data Table including HERC regions with the following columns
renamed from GEOID
renamed from GEO
renamed from NAME
DATE converted to Date format
cleaned daily new positive cases from POS_NEW except for the first day which is from POSITIVE
cleaned daily new total tests from TEST_NEW except for the first day which is from POSITIve + NEGATIVE
cleaned daily new deaths from DTH_NEW except for the first day which is from DEATHS
2018 Population Numbers pulled from WISH
daily cumulative positive cases calculated from case_daily
daily cumulative total tests calculated from test_daily
daily cumulative deaths calculated from death_daily
and likely one or more of the following columns if applicable
original daily new positive cases before cleaning
original daily new total tests before cleaning
cleaned daily new deaths before cleaning
1 2 3 4 5 | #for all available data
hdt <- pull_histTable()
#for data through a certain date
hdt_old <- pull_histTable(end_date = "2020-06-17")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.