This can be thought of as the inverse operation to
icd_children.
icd_condense(x, short_code = icd_guess_short(x), defined = NULL,
warn = TRUE, ...)# S3 method for character
icd_condense(x, short_code = icd_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)
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"
character: Condense a set of ICD codes, guessing ICD version
from input data
Other ICD-9 ranges: icd_children,
icd_expand_minor,
icd_expand_range