factor_apportioned: factor_apportioned

View source: R/factor_apportioned.R

factor_apportionedR Documentation

factor_apportioned

Description

Converts apportioned column into a factor for production of long format tables.

Usage

factor_apportioned(x)

Arguments

x

a column giving the apportioned status of a case. One of 1, 0, HO or CO

Value

A factor with levels "Hospital-onset", "Community-onset" and "Total cases"

See Also

mo_tab_long, ann_tab_long

Examples

factor_apportioned(1)
factor_apportioned("CO")

PublicHealthEngland/hcaidcs documentation built on Jan. 19, 2024, 8:38 a.m.