View source: R/pad_3char_codes.R
pad_3char_codes | R Documentation |
Some of the ICD-9 codes only contain 3 characters (i.e., they do not contain subcodes). This function just takes the UCOD column and converts all of these 3 character codes into 4 by padding a zero at the end.
pad_3char_codes(icd9_ucod)
icd9_ucod |
The ucod column from an ICD-9 dataframe |
vector
pad_3char_codes(c("400", "4043", "304", "5062"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.