setupDataset | R Documentation |
This rattle support function is used for encapsulating data mining objects. The supplied environment is augmented with other data derived from the supplied data, such as a sample trianing dataset, list of numeric variables, and a formula for modelling.
setupDataset(env, seed=NULL)
env |
the environment to modify. |
seed |
optionally set the seed for repeatability. |
The supplied object (an environment) is assumed to also contain the variables data (a data frame), target (a character string naming the target variable), risk (a character string naming the risk variable), and inputs (a character vector naming all the input variables). This function then adds in the variables vars (the variables used for modelling), numerics (the numeric vars within inputs), nobs (the number of observations), form (the formula for building models), train (a 70% training dataset).
Package home page: https://rattle.togaware.com
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.