Learn R Programming

icd9 (version 0.3)

icd9ParentMinor: get parent of an ICD-9 code

Description

not likely to be useful for end-user, so using keyword internal for now.

Usage

icd9ParentMinor(minor, invalidAction = icd9InvalidActions)

Arguments

minor
character vector of 'minor' part of ICD-9 codes, i.e. that part which falls after the decimal point, in decimal notation. (In 5 digit notation, the 'major' part is be xyz, even when x and y are zero, thus the last two characters represent the 'minor' part
invalidAction
character string (unit length) containing one of: "ignore", "silent", "warn", "stop"

- ignore no check for validity of ICD-9 code is made implicitly. This is the fastest option. If the function call is explicitly to check validity, e

Value

  • character vector of ICD-9 codes, one for each code given.