View source: R/stratifyByRoute.R
stratifyByRouteCategory | R Documentation |
Stratify a codelist by route category.
stratifyByRouteCategory(x, cdm, keepOriginal = FALSE)
x |
A codelist. |
cdm |
A cdm reference via CDMConnector. |
keepOriginal |
Whether to keep the original codelist and append the stratify (if TRUE) or just return the stratified codelist (if FALSE). |
The codelist with the required stratifications, as different elements of the list.
library(CodelistGenerator)
cdm <- mockVocabRef()
codes <- list("concepts" = c(20,21))
new_codes <- stratifyByRouteCategory(x = codes,
cdm = cdm,
keepOriginal = TRUE)
new_codes
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.