Last data update: 2014.03.03

R: constructor function for defining a preprocessing phase.
setphaseR Documentation

constructor function for defining a preprocessing phase.

Description

Preprocessing phases consist of preprocessing techniques defined with setpreprocessor(). Phases can be defined with setphase() and combined to a grid of combinations with setgrid().

Usage

setphase(phasename, preprocessor, preimpute)

Arguments

phasename

(character) name of the phase

preprocessor

(character) vector of preprocessors (see ?setpreprocessor) belonging to the phase

preimpute

(logical) whether phase is missing value imputation

Details

All elements of argument 'preprocessor' must point to PreprocessorClass objects constructed with function 'setpreprocessor()'.
If dataset contains missing values, missing value imputation must be the first phase.

Value

a PhaseClass object

Examples

## imputation <- setphase("imputation", c("naomit", "meanimpute"), TRUE)

Results