Skip to contents

user_table

Usage

user_table(table_map, db_con, desired_cdm_table)

Arguments

table_map

A dplyr::tibble, generated by mod_data_model_detection containing user database tables and fields mapped to the determined CDM.

db_con

A DBI::dbConnect object that is created through user interaction with the Setup Tab

desired_cdm_table

A string containing the table name in the desired CDM.

Value

A SQL data source dplyr::tbl, ie. tbl(db_con, user_table), that connects to the user table that corresponds to the standard data model table.