getTable: Get a table, possibly from a database

Description Usage Arguments Value

Description

Takes a connection, table or table name, and (optional) label, if the second parameter isn't a table name, it just returns it, otherwise, announces that it is loading the table from the database and uses [dplyr::tbl()] to do that. Also adds an explanatory message if dbplyr is not loaded.

Usage

1
getTable(con, table, label = deparse(rlang::enexpr(table)))

Arguments

con

A DBI Connection obtained with [DBI::dbConnect()]

table

A table or the name of the table to extract

label

User-friendly name for the table (used in info message)

Value

The table


sverchkov/BaselineRegularization documentation built on May 9, 2019, 1:26 p.m.