ca_prod_tbl: Create a tbl pointer to a specified schema and table in the...

Description Usage Arguments Value Examples

View source: R/ca_prod_tbl.R

Description

If a schema name is not provided, will print a list of the available schemas in CLINICAL_ANALYTICS_PROD. If a table name is not provided, will print a list of the available tables in the specified schema.

Usage

1
ca_prod_tbl(conn, schema = NA, name = NA)

Arguments

conn

a DBI-compliant connection object. recommend using the 'connect_cdw()' function

schema

A character string specifying a table

name

A character string specifying a table or view

Value

a tbl or a display of tables and views available

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
## Not run: 
conn <- connect_cdw()

ca_prod_tbl(conn)

ca_prod_tbl(conn, schema = "DMS_ACUTE_CARE")

ca_prod_tbl(conn, "DMS_ACUTE_CARE", "SEPSIS")

disconnect_cdw(conn)

## End(Not run)

RollieParrish/ccdm documentation built on Dec. 31, 2020, 4:26 p.m.