This can be thought of as the inverse operation to
children.
condense(x, short_code = guess_short(x), defined = NULL, warn = TRUE, ...)# S3 method for character
condense(x, short_code = guess_short(x), defined = NULL,
...)
icd9_condense_decimal(x, defined = NULL, warn = TRUE,
keep_factor_levels = FALSE)
icd9_condense_short(x, defined = NULL, warn = TRUE,
keep_factor_levels = FALSE)
icd_condense.character(...)
icd_condense.icd9(...)
icd_condense(...)
single logical value which determines whether the ICD-9
code provided is in short (TRUE) or decimal (FALSE) form.
Where reasonable, this is guessed from the input data.
single logical value, if TRUE, give warnings when
there is discrepancy between onlyReal being TRUE yet data
containing undefined codes.
arguments passed on to other functions
single logical value, default FALSE. If
TRUE, will reuse the factor levels from the input data for the
output data. This only applies if a factor is given for the input codes.
is a character vector or factor of ICD-9 codes. If fewer than five characters is given in a code, then the digits are greedily assigned to hundreds, then tens, then units, before the decimal parts. E.g. "10" becomes "010", not "0010".
is a character vector of ICD-9 codes. If fewer than five characters is given in a code, then the digits are greedily assigned to hundreds, then tens, then units, before the decimal parts. E.g. "10" becomes "010", not "0010"
character vector of ICD-9 codes. If fewer than five characters is given in a code, then the digits are greedily assigned to hundreds, then tens, then units, before the decimal parts. E.g. "10" becomes "010", not "0010"
arguments passed on to other functions
character: Condense a set of ICD codes, guessing ICD version
from input data
Future versions of icd will drop
the icd_ prefix. For example, charlson should be used in
favor of icd_charlson. To distinguish icd function calls,
consider using the namespace prefix icd:: instead, e.g.,
icd::charlson. Functions which specifically operate on either ICD-9
or ICD-10 codes or their subtypes will retain the prefix. E.g.
icd9_comorbid_ahrq. icd specific classes also retain
the prefix, e.g., icd_wide_data.
Future versions of icd will drop
the icd_ prefix. For example, charlson should be used in
favor of icd_charlson. To distinguish icd function calls,
consider using the namespace prefix icd:: instead, e.g.,
icd::charlson. Functions which specifically operate on either ICD-9
or ICD-10 codes or their subtypes will retain the prefix. E.g.
icd9_comorbid_ahrq. icd specific classes also retain
the prefix, e.g., icd_wide_data.
Future versions of icd will drop
the icd_ prefix. For example, charlson should be used in
favor of icd_charlson. To distinguish icd function calls,
consider using the namespace prefix icd:: instead, e.g.,
icd::charlson. Functions which specifically operate on either ICD-9
or ICD-10 codes or their subtypes will retain the prefix. E.g.
icd9_comorbid_ahrq. icd specific classes also retain
the prefix, e.g., icd_wide_data.
Other ICD-9 ranges: children,
expand_minor, expand_range