Description
Function to load the example data to a specified table.
This is used only in loading example data for trying examples for the tdplyr functions.
Note: This function
can be used in restricted way in that it can only accept predefined values as can be found only in the examples provided in the function reference guide and the user guide;
creates new table(s) in Vantage. If required, the user must drop them manually;
will skip creation of the table and loading of the data to it if a table with the name provided already exists.
Usage
loadExampleData(fileName, ...)
Arguments
fileName |
Required Argument. |
... |
Required Argument. |
Examples
# Get remote data source connection.
con <- td_get_context()$connection
# Example 1 - Loading single table used in the example for "td_glm_mle".
# Load example data.
loadExampleData("glm_example", "admissions_train")
# Create object of class "tbl_teradata" based on the data loaded to use as input.
admissions_train <- tbl(con, "admissions_train")
# Example 2 - Loading multiple tables used in the examples for "td_glm_predict_mle".
loadExampleData("glmpredict_example", "admissions_test", "housing_test")
# Create objects of class "tbl_teradata" based on the data loaded to use as inputs.
admissions_test <- tbl(con, "admissions_test")
housing_test <- tbl(con, "housing_test")