setupDataset: Given specific contents of env add other dataset related...

View source: R/data.R

setupDatasetR Documentation

Given specific contents of env add other dataset related variables.


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)



the environment to modify.


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:

rattle documentation built on March 21, 2022, 5:06 p.m.