Learn R Programming

CodelistGenerator (version 4.0.0)

unionCodelists: Generate a codelist from the union of different codelists. The generated codelist will come out in alphabetical order.

Description

Generate a codelist from the union of different codelists. The generated codelist will come out in alphabetical order.

Usage

unionCodelists(x, keepOriginal = FALSE)

Value

A codelist

Arguments

x

A codelist.

keepOriginal

Whether to keep the original codelist (TRUE) or just return the stratified ones (FALSE).

Examples

Run this code
# \donttest{
library(CodelistGenerator)
cdm <- mockVocabRef()
getDrugIngredientCodes(cdm,
                        nameStyle = "{concept_name}") |>
unionCodelists()
# }

Run the code above in your browser using DataLab