build_data | R Documentation |
User provides dataframes that records the number of cases, (optionally) hospital admissions and viral concentration in wastewater for a specific location. The various data source do not have to have matching date.
build_data(cases, hosp, ww, hosp.type, case.date.type)
cases |
Dataframe with two columns named |
hosp |
Dataframe with two columns named |
ww |
Dataframe with two columns named |
hosp.type |
String. Type of hospitalization provided in |
case.date.type |
String. Type of date which cases are based on: |
A list of dataframes.
# Load data sets examples from `wem` package:
data('cases')
data('hosp')
data('wwviralconc')
# Build the data object:
dat = build_data(cases = cases,
hosp = hosp,
ww = wwviralconc,
hosp.type = 'hosp.adm',
case.date.type = 'report')
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.