Learn R Programming

icd (version 4.0.9)

attr_decimal_diag: Set ICD short-form diagnosis code attribute

Description

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

Usage

attr_decimal_diag(x, value = TRUE)

Arguments

Examples

Run this code
# NOT RUN {
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
# }

Run the code above in your browser using DataLab