These function implement ICD specific methods for c
, i.e.,
combinations of lists or vectors of codes, while preserving ICD classes. Base
R c
just drops all user defined classes and casts down
to lowest common denominator, e.g. if mixing numbers and characters. No
attempt here to catch all possible combinations of feeding in mixed ICD types
and other types. Let R do what it normally does, but just try to keep classes
of the first item in the list.
# S3 method for icd9 c(..., warn = FALSE) # S3 method for icd10 c(..., warn = FALSE)
... | elements to combine |
---|---|
warn | single logical value, if |
#> [1] "E998" "A10"#> [1] "A100SSX"#> [1] "Z999A"#> [1] "A100SSX" "Z999A"#> [1] "A100SSX" "Z999A"#> [1] "A10.0SSX"#> [1] "Z99.9A"#> [1] "A10.0SSX" "Z99.9A"#> [1] "A10.0SSX" "Z99.9A"# warn when mixing attribute types suppressWarnings( c(as.icd_short_diag(a), as.icd_decimal_diag(e)) )#> [1] "A100SSX" "Z99.9A"