trim_5char_record: Trim ICD-9 record columns that include the nature of injury...

View source: R/trim_5char_record.R

trim_5char_recordR Documentation

Trim ICD-9 record columns that include the nature of injury flag

Description

For some years, the ICD-9 record columns are 5 character codes with the last character representing the nature of injury (N) flag. Just trim off these columns and use the appropriate rnifla_ column for the N flag.

Usage

trim_5char_record(record_col)

Arguments

record_col

The record column from an ICD-9 dataframe

Value

vector

Examples

trim_5char_record(c("400 1", "40000", "400", "400 "))

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