Learn R Programming

icd9 (version 0.2.1)

icd9AddLeadingZeroesShort: add leading zeroes to short-form ICD-9 code

Description

Use with care. non-decimal ICD-9 codes with length

Usage

icd9AddLeadingZeroesShort(icd9Short, invalidAction = c("ignore", "silent",
  "warn", "stop"))

Arguments

icd9
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"

See Also

Other ICD-9 convert: icd9AddLeadingZeroesMajor; icd9DecimalToShort; icd9DropZeroFromDecimal; icd9PartsRecompose, icd9PartsToDecimal, icd9PartsToDecimal, icd9PartsToShort, icd9PartsToShort