Description Usage Arguments Examples
Convert and check comorbid strings, count positions within them to get disease counts.
1 2 3 4 5 | to_string(comorbid_column)
check_strings_equal(comorbid_column)
get_disease_counts(comorbid_column)
|
comorbid_column |
A vector of character strings made up of 0s and 1s, or of factors coercible to character, all should be identical lengths. |
1 2 3 4 5 6 7 8 9 | comorbid_column <- c('00010', '01000', '01110', '11101')
comorbid_factors <- as.factor(comorbid_column)
to_string(comorbid_factors) # make into string
check_strings_equal(comorbid_column) # TRUE if strings all same length
get_disease_counts(comorbid_column) # list of counts by position in comorbid string
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.