group_tto_cdi: Provides grouped time to onset for bacteraemia cases

View source: R/group_tto_cdi.R

group_tto_cdiR Documentation

Provides grouped time to onset for bacteraemia cases

Description

Provides grouped time to onset for bacteraemia cases

Usage

group_tto_cdi(time_diff)

Arguments

time_diff

The time to onset as calculated by time_to_onset

Value

An ordered factor

See Also

time_to_onset

group_tto_bacteraemia

Examples

onset <- lubridate::dmy("05-01-2011")
admitted <- lubridate::dmy("01-01-2011")
patient_cat <- "In-patient"
patient_loc <- "NHS Acute Trust"
tto <- time_to_onset(admitted, onset, patient_cat, patient_loc)
group_tto_cdi(tto)

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