name_stems: Change split stems into named diseases

Description Usage Arguments Value Examples

View source: R/name_stems.R

Description

Name stems once they have been split

Usage

1
name_stems(split_stems, dis_names, separator = "|")

Arguments

split_stems

A vector of split stems outputted by split_stem

dis_names

A list of disease names associated with each position as used in get_disease_counts

separator

Character to divide diseases in a stem, default of '|'

Value

A character vector of split stems converted to names, with each disease in a stem separated by defined separator.

Examples

1
2
3
4
5
cut_stems = c('1-3', '2-3','1-2')

disease_names = list('Diabetes','Kidney Disease','Heart Failure')

name_stems(cut_stems, dis_names = disease_names) # many stems

AJFOWLER/comorbidgroupr documentation built on May 11, 2021, 6:01 a.m.