This function processes the character matrix of ICD9 codes by converting them to character codes of length 5. For SAS procedure from HCUP, it trims all character string to be of length 5, adds the missing trailing white space, and capitalizes the first character in ICD9 codes.
a character matrix of ICD9 codes, with rows representing patients.
a character vector of length one indicating the reformatting style to follow. The possible option are "touch" and "hcup". The former does the cleaning for this package; The latter does the reformatting for the SAS script provided by HCUP.
a matrix of cleaned ICD9 codes.
Jun Yan and Wenjie Wang
1 2 3
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.