Learn R Programming

icd (version 3.1.2)

icd9MajMinToCode_alt_PrePadded: Convert mjr and mnr vectors to single code

Description

In debug mode, will check that mjr and mnr are same length.

Usage

icd9MajMinToCode_alt_PrePadded(mjr, mnr, isShort)

icd9MajMinToCode(mjr, mnr, isShort)

Arguments

isShort

Deprecated. 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.

major

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

minor

character vector of 'minor' part of ICD-9 codes, i.e. that part which falls after the decimal point, in decimal notation. (In 'short' five digit notation, the 'major' part is the first three characters including leading zeroes which may be inferred; the last two characters represent the 'minor' part.)

Functions

  • icd9MajMinToCode_alt_PrePadded: Same as icd9MajMinToCode but assume codes are already trimmed and correctly padded with zeros, e.g. E001, V09, 001. This version does handle NA values correctly. ' @keywords internal