insert_dot {touch} | R Documentation |
Insert Dot to ICD-9 and ICD-10 Diagnosis Codes
Description
This function adds dot to diagnosis codes of the given ICD version.
Usage
insert_dot(dx, version = c(10, 9))
Arguments
dx |
A character vector for the diagnosis codes |
version |
The version of the diagnosis codes. Two available options
are |
Value
A character vector representing the diagnosis codes in decimal format.
Examples
library(touch)
## for ICD-9 codes
icd9codes <- c("0011", "001.1", "316", "E950", "E9808", "V90", "v100")
insert_dot(icd9codes, 9)
## for ICD-10 codes
icd10codes <- c("A010", "M61019", "p52", "p528")
insert_dot(icd10codes)
[Package touch version 0.1-6 Index]