buildAchillesTables {CodelistGenerator} | R Documentation |
Add the achilles tables with specified analyses
Description
If the cdm reference does not contain the achilles tables, this function will create them for the analyses used by other functions in the package.
Usage
buildAchillesTables(cdm, achillesId = NULL)
Arguments
cdm |
A cdm reference via CDMConnector. |
achillesId |
A vector of achilles ids. If NULL default analysis will be used. |
Value
The cdm_reference object with the achilles tables populated.
Examples
dbName <- "GiBleed"
CDMConnector::requireEunomia(dbName)
con <- duckdb::dbConnect(duckdb::duckdb(), CDMConnector::eunomiaDir(dbName))
cdm <- CDMConnector::cdmFromCon(
con = con, cdmSchema = "main", writeSchema = "main"
)
cdm <- buildAchillesTables(cdm = cdm)
[Package CodelistGenerator version 3.5.0 Index]