unionCodelists: Generate a codelist from the union of different codelists....

View source: R/unionCodelists.R

unionCodelistsR Documentation

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)

Arguments

x

A codelist.

keepOriginal

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

Value

A codelist

Examples


library(CodelistGenerator)
cdm <- mockVocabRef()
getDrugIngredientCodes(cdm,
                        nameStyle = "{concept_name}") |>
unionCodelists()


CodelistGenerator documentation built on Dec. 17, 2025, 5:06 p.m.