sub-sub-.comorbidity_map: Extract vector of codes from an ICD comorbidity map

Description Usage Arguments Examples

Description

Equivalent to a list, but preserves class of extracted vector.

Usage

1
2
## S3 method for class 'comorbidity_map'
x[[index, ...]]

Arguments

x

comorbidity map, which is a named list

index

integer

...

arguments passed on to other functions

Examples

1
2
# show that attributes are preserved when subsetting
stopifnot(is.short_diag(icd10_map_ahrq[[1]]))

icd documentation built on July 2, 2020, 4:07 a.m.