Description Usage Arguments Value See Also Examples
This function checks a connection to an 'OMOP' 'CDM' database and creates and returns a list of lazy 'dbplyr' table references corresponding to the available 'CDM' tables.
1 | omopr_init(con, schema = NULL)
|
con |
A database connection, such as returned by the function |
schema |
Optional string name of a database schema in which the 'OMOP' 'CDM' tables are stored. Potential examples include "public", "dbo", "omop", "cdm", "data", etc. |
A named list with elements corresponding to dbplyr
lazy tibble references.
1 2 3 4 5 6 | # con = DBI::dbConnect(RPostgres::Postgres(), dbname = "omopdb")
con = omopr:::dummy_con() # dummy connection to allow example to run
tRefs = omopr_init(con)
tRefs[["person"]]
row_counts(tRefs)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.