getDB | R Documentation |
Get a connection established to a database and return the information desired in the specific query.
getDB(
sql,
database = "PacFIN",
datasourcename = lifecycle::deprecated(),
username,
password,
asis = FALSE
)
sql |
A valid SQL statement. |
database |
A string providing the name of the database that you wish to
connect to. This string must match the name that is used to configure the
database on your computer exactly. The default is |
datasourcename |
Deprecated as of version 0.2.9. Please use the
|
username |
Most often, this is a string containing your username for the
database of interest. You can use |
password |
Most often, this is a string containing your password for
the database of interest. You can use the function |
asis |
A logical, specifying whether or not to leave columns as is
rather than convert them to factors, as defined in |
A data frame resulting from querying the database or an
error message because the main call is wrapped in
tryCatch
.
John R. Wallace, Kelli F. Johnson
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.