Learn R Programming

icd (version 2.4.1)

icd9ChildrenShort11: Find child codes from vector of ICD-9 codes.

Description

Pure C++11 implementation using unordered set to find children of given codes

Usage

icd9ChildrenShort11(icd9Short, onlyReal)

Arguments

Examples

Run this code
# NOT RUN {
if (requireNamespace("microbenchmark")) {
microbenchmark::microbenchmark(
  icd:::icd9ChildrenShort(c("001", 100:500), onlyReal = TRUE),
  icd:::icd9ChildrenShort11(c("001", 100:500), onlyReal = TRUE),
  times = 5)
  # C++11 about 15% faster for this data
}
# }

Run the code above in your browser using DataLab