View source: R/subsetOnRouteCategory.R
subsetOnRouteCategory | R Documentation |
Subset a codelist to only those with a particular route category
subsetOnRouteCategory(x, cdm, routeCategory, negate = FALSE)
x |
A codelist. |
cdm |
A cdm reference via CDMConnector. |
routeCategory |
Only codes with the specified route will be returned. If NULL, descendant codes will be returned regardless of route category. Use getRoutes() to find the available route categories. |
negate |
If FALSE, only concepts with the routeCategory specified will be returned. If TRUE, concepts with the routeCategory specified will be excluded. |
The codelist with only those concepts associated with the specified route categories (if negate is FALSE) or the codelist without those concepts associated with the specified route categories (if negate is TRUE).
library(CodelistGenerator)
cdm <- mockVocabRef()
codes <- subsetOnRouteCategory(
x = list("codes" = c(20,21)),
cdm = cdm,
routeCategory = "topical")
codes
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.