unite_records: Unite the 20 record columns from MCOD dataframe into a single...

View source: R/unite_records.R

unite_recordsR Documentation

Unite the 20 record columns from MCOD dataframe into a single column

Description

This function collapses the 20 contributory cause columns into a single column for easier regex'ing. ICD-9 dataframes will also get appropriate prefixes before collapsing.

Usage

unite_records(icd_df, year = NULL)

Arguments

icd_df

an ICD dataframe

year

the year of this dataframe – if NULL, will attempt to detect

Value

dataframe


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