filter_deaths: Filter Case Data to COVID-19 Deaths

View source: R/filter_deaths.R

filter_deathsR Documentation

Filter Case Data to COVID-19 Deaths

Description

Filter Case Data to COVID-19 Deaths

Usage

filter_deaths(data, col = "die_from_illness_ind", cols_check = "inv_death_dt")

Arguments

data

Case data, as output by pos(process_inv())

col

⁠<tidy-select>⁠ A single, character indicator column for COVID-19 deaths. Deaths should be labeled "Y".

cols_check

⁠<tidy-select>⁠ Columns to check for missing data. Rows with missing data are assumed to be coded incorrectly and will not be counted as a death, even if col is labeled "Y".

Value

The input data filtered to rows containing deaths


jesse-smith/covidReport documentation built on Aug. 3, 2024, 4:52 p.m.