get_data | R Documentation |
This function contains the logic for deciding whether to extract or load data. It is aware of the required tables, and if all are present,it will load them into the global environment. If some are missing, it will offer to re-extract them. If the user chooses to re-extract, it will get their oracle credentials and verify that the user has access to all of the required tables prior to attempting an extraction.
get_data(
db = NULL,
usepkg = "rodbc",
force.extract = FALSE,
data.dir = file.path(getwd(), "data"),
fn.oracle.username = "_none_",
fn.oracle.password = "_none_",
fn.oracle.dsn = "_none_",
env = .GlobalEnv,
quiet = FALSE
)
db |
default is
|
usepkg |
default is |
force.extract |
The default value is FALSE. By default, existing data will be loaded. If
|
data.dir |
The default is your working directory. If you are hoping to load existing data, this folder should identify the folder containing your *.rdata files. |
fn.oracle.username |
default is |
fn.oracle.password |
default is |
fn.oracle.dsn |
default is |
env |
This the the environment you want this function to work in. The
default value is |
quiet |
default is |
Mike McMahon, Mike.McMahon@dfo-mpo.gc.ca
Other dfo_extractions:
get_data_custom()
,
get_survey()
,
self_filter()
,
summarize_catches()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.