Usage
icd9DropLeadingZeroes(icd9, isShort, dropZeroV = FALSE,
invalidAction = icd9InvalidActions)icd9DropLeadingZeroesDecimal(icd9Decimal, dropZeroV = FALSE,
invalidAction = icd9InvalidActions)
icd9DropLeadingZeroesShort(icd9Short, dropZeroV = FALSE,
invalidAction = icd9InvalidActions)
icd9DropLeadingZeroesMajor(major, dropZeroV = FALSE,
invalidAction = icd9InvalidActions)
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"
dropZeroV
single logical, if TRUE will additionally drop V0x.yz to
Vx.yz In the case of 'short' form codes, this is only valid when there is
no decimal part, e.g. V01 can become V1, but V0123 cannot become V123
because its meaning changes.
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
icd9Decimal
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"
icd9Short
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"