snapshot {CDMConnector} | R Documentation |
Extract CDM metadata
Description
Extract the name, version, and selected record counts from a cdm.
Usage
snapshot(cdm)
Arguments
cdm |
A cdm object |
Value
A named list of attributes about the cdm including selected fields from the cdm_source table and record counts from the person and observation_period tables
Examples
## Not run:
library(CDMConnector)
con <- DBI::dbConnect(duckdb::duckdb(), eunomia_dir())
cdm <- cdm_from_con(con, "main")
snapshot(cdm)
DBI::dbDisconnect(con, shutdown = TRUE)
## End(Not run)
[Package CDMConnector version 1.5.0 Index]