View source: R/mandatory_age_group.R
mandatory_age_group | R Documentation |
Creates age group as ordered factor according to standard ages for HCAIDCS. Values are rounded down using floor before grouping.
mandatory_age_group(x, collection = NULL)
x |
A numeric vector giving age in years, calculated by |
collection |
An optional parameter giving the collection for CDI age grouping. If the collection is not given, the bacteraemia age grouping is applied. |
A factor vector with levels <1 1-14 15-44 45-64 65-74 75-84 ge85 for bacteraemia or 2-14 15-44 45-64 65-74 75-84 ge85 for cdi.
mandatory_age
mandatory_age_group(0)
mandatory_age_group(x = 0)
mandatory_age_group(0, "MRSA")
mandatory_age_group(0, "cdi")
mandatory_age_group(1, "cdi")
mandatory_age_group(2, "cdi")
mandatory_age_group(0.038)
mandatory_age_group(1)
mandatory_age_group(14)
mandatory_age_group(15)
mandatory_age_group(seq(1,100, 1))
mandatory_age_group(seq(1,100, 1), "cdi")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.