Extends the original data with the classification table and keeps data in long format. Computes classification table and attaches it to original data. Data stays in long format.

classify_charlson(.data, icd_codes)

Arguments

.data

tibble of register data which we want to study

icd_codes

name of the variable holding ICD-codes

Value

data frame

Examples

if (FALSE) { x<-1 }