Learn R Programming

icd9 (version 1.3.1)

icd9IsN: do codes belong to numeric, V or E classes?

Description

For each code, return TRUE if numric or FALSE if a V or E code.

Usage

icd9IsN(icd9)
icd9IsV(icd9)
icd9IsE(icd9)

Arguments

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

Value

logical vector

Functions

  • icd9IsV: are the given codes V type?
  • icd9IsE: are the given codes E type?