Description Usage Arguments Value See Also
View source: R/prep_linelist.R
clean_linelist()
creates a cleaned version of an incidence linelist with
collection and report dates. It removes observations with collection dates
that have not been fully reported (as determined by pct_reported
), as well
as observations with missing collection dates or collection dates prior to
start_date
. It then checks that all report dates are on or after the
corresponding collection dates and removes observations where this is untrue.
1 2 3 4 5 6 7 8 | clean_linelist(
.data,
.collection_date = "collection_date",
.report_date = "report_date",
start_date = "2020-03-12",
delay_period = 14L,
pct_reported = 0.9
)
|
.data |
A data frame containing one incident observation per row |
.collection_date |
|
.report_date |
|
start_date |
The start date of the epidemic;
defaults to |
delay_period |
The length of time to use in calculating reporting
delay; can be a time-based definition (e.g. "2 weeks") or an integer number
of days. If |
pct_reported |
The percent of total cases reported before considering
a collection date to be fully observed. It is not recommended to set this
to |
A tibble
containing the cleaned linelist
Higher-level functions
prep_linelist_decomposition()
, prep_linelist()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.