View source: R/data-item-cleaning.R
clean_icd_code | R Documentation |
Clean cause of death codes
clean_icd_code(code, keep_unknown = FALSE)
code |
A character vector of ICD-7, ICD-8, ICD-9, and/or ICD-10 codes. |
keep_unknown |
Replace values for "unknown" with |
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
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.