flag_maternal_deaths: Creates a new column called maternal_death with 1 if maternal...

flag_maternal_deathsR Documentation

Creates a new column called maternal_death with 1 if maternal death

Description

Maternal deaths according to ICD-10 codes.

Usage

flag_maternal_deaths(
  processed_df,
  year = NULL,
  ucod_only = FALSE,
  keep_cols = FALSE
)

Arguments

processed_df

MCOD dataframe already processed

year

if NULL, will attempt to detect

ucod_only

if TRUE, only flag maternal deaths in underlying cause

keep_cols

keep intermediate columns

Value

a new dataframe with a binary maternal_death column


mkiang/narcan documentation built on Sept. 26, 2024, 7:18 a.m.