Learn R Programming

icd9 (version 0.2.1)

icd9AddLeadingZeroesMajor: zero-pad major part of ICD9 code

Description

three digit codes are returned unchanged, one and two digit codes are preceded by 00 or 0. V or E codes are trimmed for whitespace and returned without prefxing. NA values are generated where the code is non-numeric, and doesn't match a valid V or E code format.

Usage

icd9AddLeadingZeroesMajor(major, invalidAction = c("ignore", "silent", "warn",
  "stop"))

Arguments

major
character vector of 'major' part of ICD-9 codes, i.e. that part which falls before the decimal point, in decimal notation. (In 5 digit notation, the 'major' part is be the first three characters (with leading zeroes), and includes V or E prefix. xyz

Value

  • character vector

See Also

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