View source: R/healthdata_data.R
preprocess_healthdata_data | R Documentation |
Preprocess healthdata data set, calculating incidence, adjusting date, and calculating national incidence.
preprocess_healthdata_data(raw_healthdata_data, fips_codes, measure)
raw_healthdata_data |
tibble one row and columns issue_date and data The data column should be a list of data frames, with column names date, state, previous_day_admission_adult_covid_confirmed, and previous_day_admission_pediatric_covid_confirmed |
fips_codes |
covidData::fips_codes data object |
measure |
the measure to retrieve, either "hospitalizations" or "flu hospitalizations" |
a result of similar format to raw_healthdata_data, but columns date, location, and inc
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.