addPeriods: Add periods for ICD codes

Description Usage Arguments Value Examples

Description

This function add a period after the third digit of an ICD code and return the result as a string.

Usage

1

Arguments

x

A character vector that represents a series of ICD codes.

Value

A character vector of the same length as x. Each ICD code in the vector has a period added after the third digit.

Examples

1
2
3
4
bpEligICD9 <- c(7213,72190,72210,72252,7226,72293,72402,7242:7246,72470,72471, 
                72479,7385,7393,7394,8460:8469)
bpElibICD10 <- unique(getICD10(bpEligICD9))
addPeriods(bpElibICD10)

songxh0424/MPrOVE-package documentation built on May 19, 2019, 4:18 p.m.