Learn R Programming

icd9 (version 1.3.1)

parseElix: Generate Elixhauser comorbidities

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

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.