charl_score: charlson index scoring function

Description Usage Arguments

View source: R/comorbs.R

Description

function takes a data frame with Charlson diagnosis groups as columns and generates a Charlson comorbidity index score for each row

Usage

1
charl_score(x, cats = F)

Arguments

x

is a data frame with columns corresponding to the names defined in comorbs$charl_names

cats

is a logical indication of whether output should be the categorical 0, 1, 2 score or just the default count variable

@return returns a vector of length = nrow(x) with charlson scores

@export


socioskop/grit documentation built on Dec. 23, 2021, 3:30 a.m.