Description Usage Arguments Value Examples
Cut disease stems for different number of diseases.
1 | split_stem(stems, cut_level = 1, maximal = TRUE)
|
stems |
character vector of stems to be processed which should each be separated by a semi-colon ( |
cut_level |
number indicating the level at which stems should be cut (i.e. the number of diagnoses). |
maximal |
A logical that true if the 'maximal' stem is to be considered for each record, or if it is to be limited to only records with the same number of diagnoses as |
A vector of the stems cut at the correct number of diagnoses.
1 2 3 | stems <- c('4;5-6;3-5-6;;', '4;5-4;;;', '5;5-6;3-5-6;3-5-6-7;')
split_stem(stems, cut_level = 3, maximal = TRUE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.