enw_incidence_to_linelist | R Documentation |
This function takes a data.table
of aggregate counts or
something coercible to a data.table
(such as a data.frame
) and converts
it to a line list where each row represents a case.
enw_incidence_to_linelist(
obs,
reference_date = "reference_date",
report_date = "report_date"
)
obs |
An object coercible to a |
reference_date |
A character string of the variable name to use
for the |
report_date |
A character string of the variable name to use
for the |
A data.table
with the following variables: id
, reference_date
,
report_date
, and any other variables in the obs
object. Rows in obs
will be duplicated based on the new_confirm
column. reference_date
and
report_date
may be renamed if reference_date
and report_date
are
supplied.
Data converters
enw_add_cumulative()
,
enw_add_incidence()
,
enw_aggregate_cumulative()
,
enw_cumulative_to_incidence()
,
enw_incidence_to_cumulative()
,
enw_linelist_to_incidence()
incidence <- enw_add_incidence(germany_covid19_hosp)
incidence <- enw_filter_reference_dates(
incidence[location == "DE"], include_days = 10
)
enw_incidence_to_linelist(incidence, reference_date = "onset_date")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.