attr_decimal_diag: Set ICD short-form diagnosis code attribute

Description Usage Examples

View source: R/RcppExports.R

Description

Doing this in an R function doesn't work for 'void' equivalent, and does a copy if the updated object is returned.

Usage

1
attr_decimal_diag(x, value = TRUE)

Examples

1
2
3
4
5
6
7
8
j <- "100"
attr(j, "icd_short_diag") <- TRUE
j
attr(j, "icd_short_diag") <- FALSE
j
icd:::attr_decimal_diag(j)
as.decimal_diag(j)
# if pryr is installed, use address and refs to see what is going on

icd documentation built on July 2, 2020, 4:07 a.m.