stratifyByRouteCategory: Stratify a codelist by route category.

View source: R/stratifyByRoute.R

stratifyByRouteCategoryR Documentation

Stratify a codelist by route category.

Description

Stratify a codelist by route category.

Usage

stratifyByRouteCategory(x, cdm, keepOriginal = FALSE)

Arguments

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).

Value

The codelist with the required stratifications, as different elements of the list.

Examples


library(CodelistGenerator)
cdm <- mockVocabRef()
codes <- list("concepts" = c(20,21))
new_codes <- stratifyByRouteCategory(x = codes,
                                     cdm = cdm,
                                     keepOriginal = TRUE)
new_codes


CodelistGenerator documentation built on April 11, 2025, 5:51 p.m.