ICD9-CM data unfortunately has no comma separation, so have to pre-process. Note that this canonical data doesn't specify non-diagnostic higher-level codes, just the specific diagnostic 'child' codes.
parseIcd9Descriptions(icd9path = system.file("extdata",
"CMS32_DESC_LONG_DX.txt", package = "icd9"), save = FALSE, path = "data")
path of the source data which is in /extddata in the installed package, but would be in inst/extdata in development tree.
logical whether to attempt to save output in package source tree data directory
Absolute path in which to save parsed data
invisibly return the result
ideally would get ICD9-CM data zip directly from CMS web page, and extract, but the built-in unzip only extracts the first file in a zip.