make_core: Core table

Description Usage Arguments Value Examples

View source: R/utils.R

Description

Writes a remote SQL query to make a core table with all the necessary column names for most data extraction tasks. No work is done till the function is explicitly called.

Usage

1

Arguments

connection

a database connection

Value

a database object

Examples

1
2
3
4
5
db_pth <- system.file("testdata/synthetic_db.sqlite3", package = "inspectEHR")
ctn <- connect(sqlite_file = db_pth)
core <- make_core(ctn)
head(core)
DBI::dbDisconnect(ctn)

CC-HIC/inspectEHR documentation built on Jan. 16, 2020, 11:24 p.m.