Learn R Programming

icd (version 3.2.0)

icd9AddLeadingZeroes_alt_ShortSingle: Decompose a 'short' ICD code and insert the leading zeroes as needed.

Description

This should add leading zeroes when there is definitely no ambiguity, e.g. V1. However V10 should not be altered, because V010 is a different code. The goal is for this to be faster, but must be correct! Example in manip.cpp has the benchmark code.

Usage

icd9AddLeadingZeroes_alt_ShortSingle(x)

icd9_add_leading_zeroes_alt_cpp(x, short_code)

Arguments

Functions

  • icd9_add_leading_zeroes_alt_cpp: Directly apply icd9AddLeadingZeroesShortSingle to each code without separating into parts