clean_icd_9_cm: Clean ICD-9-CM codes

Description Usage Arguments Value

View source: R/data-item-cleaning.R

Description

Clean ICD-9-CM codes

Usage

1

Arguments

code

A character vector of ICD-9-CM codes.

keep_unknown

Replace values for "unknown" with NA?

Value

A character vector with leading and trailing whitespace removed. If keep_unknown is FALSE, blanks and the ICD-9-CM code for "unknown" ("00000") are replaced with NA.


naaccr documentation built on Jan. 11, 2020, 9:17 a.m.