buildAchillesTables: Add the achilles tables with specified analyses

View source: R/buildAchillesTables.R

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



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