count_comorbid
differs from the other counting functions in that
it counts comorbidities, not individual diagnoses. It accepts any
data.frame
with either logical or binary contents, with a single
column for visit_name. No checks are made to see whether visit_name is
duplicated.
1 | count_comorbid(x, visit_name = get_visit_name(x), return_df = FALSE)
|
x |
data frame with one row per patient, and a true/false or 1/0 flag
for each column. By default, the first column is the patient identifier and
is not counted. If |
visit_name |
The name of the column in the data frame which contains the
patient or visit identifier. Typically this is the visit identifier, since
patients come leave and enter hospital with different ICD-9 codes. It is a
character vector of length one. If left empty, or |
return_df |
single logical value, if |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.