setphase: constructor function for defining a preprocessing phase.

Description Usage Arguments Details Value Examples

View source: R/02PhaseClass.R

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

1
setphase(phasename, preprocessor, preimpute)

Arguments

phasename

(character) name of the phase

preprocessor

(character) vector of preprocessors 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 when combining phases to grid with setgrid().

Value

a PhaseClass object

Examples

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

mvattulainen/preprocomb documentation built on May 23, 2019, 10:54 a.m.