Learn R Programming

CodelistGenerator (version 3.5.0)

buildAchillesTables: 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)

Value

The cdm_reference object with the achilles tables populated.

Arguments

cdm

A cdm reference via CDMConnector.

achillesId

A vector of achilles ids. If NULL default analysis will be used.

Examples

Run this code
# \donttest{
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)

# }

Run the code above in your browser using DataLab