Learn R Programming

preprocomb (version 0.3.0)

setgrid: constructor function for creating the combinations

Description

setgrid takes the preprocessing phases, which contain preprocessors and creates the combinations of them as a grid. It then computes and stores the transformed data sets for each combination. setgrid initializes a GridClass object.

Usage

setgrid(phases, data, diagnostics = TRUE)

Arguments

phases
(character) vector of phases
data
(data frame)
diagnostics
(logical) run testpreprocessor(), defaults to TRUE

Value

a GridClass object

Details

If there are missing values, imputation phase must be set as first phase. Default phase "sampling" can only be used with data, which has binary class labels.

Examples

Run this code
grid <- setgrid(phases=c("outliers", "selection"), data=iris)

Run the code above in your browser using DataLab