View source: R/stratifyByRouteCategory.R
| stratifyByRouteCategory | R Documentation |
Stratify a codelist by route category.
stratifyByRouteCategory(
x,
cdm,
nameStyle = "{codelist_name}_{route_category}",
keepOriginal = FALSE
)
x |
A codelist. |
cdm |
A cdm reference to an OMOP CDM dataset. If data is held within a database, the vocabulary tables should be in the same schema as the clinical tables (person, observation period, and so on). |
nameStyle |
Naming of the new codelists, use |
keepOriginal |
Whether to keep the original codelist (TRUE) or just return the stratified ones (FALSE). |
The codelist with the required stratifications, as different elements of the list.
library(CodelistGenerator)
library(omopgenerics)
cdm <- mockVocabRef()
codes <- newCodelist(list("concepts" = c(20,21,22)))
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.