clean_icd9_data: A wrapper function to perform basic cleaning of ICD-9...

View source: R/clean_icd9_data.R

clean_icd9_dataR Documentation

A wrapper function to perform basic cleaning of ICD-9 dataframes

Description

Across 1979-1998, MCOD data have minor inconsistencies. This wrapper function renames nature of injury columns, pads UCOD codes with no sub-codes, prefixes an E to external cause of injury codes and an N to nature of injury codes, and trims unnecessary characters and whitespace.

Usage

clean_icd9_data(icd9_df)

Arguments

icd9_df

an ICD-9 dataframe

Value

dataframe


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