# Connect to an OMOP Common Data Model

## Documentation for package ‘CDMConnector’ version 2.7.0

- DESCRIPTION file.
- User guides, package vignettes and other documentation.
- Package NEWS.

## Help Pages

appendPermanent | Run a dplyr query and add the result set to an existing
asDate | as.Date dbplyr translation wrapper
benchmarkCDMConnector | Run benchmark of tasks using CDMConnector
cdmCommentContents | Insert Patient CDM Contents as Aligned Comments in RStudio
cdmCon | Get underlying database connection
cdmDisconnect.db_cdm | Disconnect the connection of the cdm object
cdmFlatten | Flatten a cdm into a single observation table
cdmFromCohortSet | Build a Synthetic CDM from a Cohort Set
cdmFromCon | Create a CDM reference object from a database connection
cdmSample | Subset a cdm object to a random sample of individuals
cdmSubset | Subset a cdm object to a set of persons
cdmSubsetCohort | Subset a cdm to the individuals in one or more cohorts
cdmTrimVocabulary | Trim vocabulary tables to the minimum needed for the CDM
cdmWriteSchema | Get cdm write schema
cohdSimilarConcepts | Get similar concepts from Columbia Open Health Data (COHD) API
computeDataHashByTable | Compute a hash for each CDM table
computeQuery | Execute dplyr query and save result in remote database
copyCdmTo | Copy a cdm object from one database to another
dateadd | Add days or years to a date in a dplyr query
datediff | Compute the difference between two days
datepart | Extract the day, month or year of a date in a dplyr pipeline
dbms | Get the database management system (dbms) from a cdm_reference or DBI connection
dbSource | Create a source for a cdm in a database.
downloadEunomiaData | Download Eunomia data files
dropTable.db_cdm | Drop table from a database backed cdm object
eunomiaDir | Create a copy of an example OMOP CDM dataset
eunomiaIsAvailable | Has the Eunomia dataset been cached?
exampleDatasets | List the available example CDM datasets
generateCohortSet | Generate a cohort set on a cdm object
generateConceptCohortSet | Create a new generated cohort set from a list of concept sets
inSchema | Helper for working with compound schema
insertTableSpark | Fast bulk insert of a local table on Spark / Databricks
listTables | List tables in a schema
readCohortSet | Read a set of cohort definitions into R
requireEunomia | Require eunomia to be available. The function makes sure that you can later create a eunomia database with 'eunomiaDir()'.
snapshot | Extract CDM metadata
summariseQuantile | Quantile calculation using dbplyr
summariseQuantile2 | Quantile calculation using dbplyr
tblGroup | CDM table selection helper
version | Get the CDM version