create_clean_reported_cases | R Documentation |
Cleans a data frame of reported cases by replacing missing dates with 0
cases and applies an optional threshold at which point 0 cases are replaced
with a moving average of observed cases. See zero_threshold
for details.
create_clean_reported_cases(
reported_cases,
horizon,
filter_leading_zeros = TRUE,
zero_threshold = Inf
)
A cleaned data frame of reported cases
Sam Abbott
Lloyd Chapman
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.