parseElix: Generate Elixhauser comorbidities

Description Usage Arguments Value

View source: R/parse-comorbid.R

Description

This function uses the %i9d% operator, so cannot be done as an R file in the data directory. The data is documented in datadocs.R.

Usage

1
parseElix(condense = FALSE, save = FALSE, path = "data")

Arguments

condense

logical whether to condense the result ranges to the minimal set of parent ICD-9 codes which exactly define the list. Defaults to FALSE so that the saved list will allow rapid look-up of codes without further processing. Small memory versus time trade-off.

save

logical whether to save the result in the source tree. Defaults to FALSE.

path

path to directory to save the data. This is typically the data folder in the devleopment source tree. Defaults to "~/icd9/data". Could possibly avoid hard-coding path with devtools functions.

Value

invisibly returns the list of vectors, where a co-morbidity name is associated with a character vector of ICD-9 codes.


jackwasey/icd9 documentation built on May 18, 2019, 7:57 a.m.