collect.cdm_reference {CDMConnector}R Documentation

Bring a remote CDM reference into R

Description

This function calls collect on a list of lazy queries and returns the result as a list of dataframes.

Usage

## S3 method for class 'cdm_reference'
collect(x, ...)

Arguments

x

A cdm_reference object.

...

Not used. Included for compatibility.

Value

A cdm_reference object that is a list of R dataframes.

Examples

## Not run: 
con <- DBI::dbConnect(duckdb::duckdb(), dbdir = eunomia_dir())
vocab <- cdm_from_con(con, cdm_tables = c("concept", "concept_ancestor"))
local_vocab <- collect(vocab)
DBI::dbDisconnect(con, shutdown = TRUE)

## End(Not run)

[Package CDMConnector version 0.4.1 Index]