View source: R/get_incidence.r
get_incidence | R Documentation |
This calculates incidence according to a given column in the supplied data.
get_incidence(
data,
incidence.columns = "ili",
aggregation = c("week", "day", "month", "year"),
denominator = c("active.members", "reports"),
min.N = 1,
by = NULL
)
data |
a data table, usually generated by |
incidence.columns |
one or more columns which specificy incidence; default: "ili" |
aggregation |
the timescale of aggregation, by default "week" |
denominator |
what to use as denominator, active members or all reports in a week |
min.N |
the minimum denominator, by default 1 |
by |
one or more variables by which to group |
a data.table with the incidence
seb
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.