clean_icd_code: Clean cause of death codes

Description Usage Arguments Value

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

Description

Clean cause of death codes

Usage

1

Arguments

code

A character vector of ICD-7, ICD-8, ICD-9, and/or ICD-10 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 codes for "unknown" ("0000", "7777" and "7797") are replaced with NA.


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