check_reports_valid | R Documentation |
check_reports_valid()
checks that the supplied data is a <data.frame>
,
and that it has the right column names and types. In particular, it checks
that the date column is in date format and does not contain NAs, and that
the other columns are numeric.
check_reports_valid(
data,
model = c("estimate_infections", "estimate_truncation", "estimate_secondary")
)
data |
A data frame with either:
|
model |
The EpiNow2 model to be used. Either "estimate_infections", "estimate_truncation", or "estimate_secondary". This is used to determine which checks to perform on the data input. |
Called for its side effects.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.