mo_prior_hc_table: mo_prior_hc_table

View source: R/mo_prior_hc_table.R

mo_prior_hc_tableR Documentation

mo_prior_hc_table

Description

Create monthly table for prior healthcare exposures

Usage

mo_prior_hc_table(dat, collection = "C. difficile")

Arguments

dat

a data frame containing at least following columns: data_collection, org_code, year_no, month_no, total_cases, hoha, coha, coia, coca, month_string

collection

A string giving the data collection, default = "C. difficile"

Value

A dataframe with the table in wide format

Examples

library(dplyr)
library(tidyr)
data(cdi_prior_hc_data)
mo_prior_hc_table(cdi_prior_hc_data, collection = "C. difficile")

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