setpreprocessor: constructor function for adding a new preprocessing technique...

Description Usage Arguments Details Value

Description

The main argument is the operation that is executed to transform the data such as "na.omit(basedata)" for removing rows that have missing values. An operation can process either only the numeric columns or also the class label column.

Usage

1
setpreprocessor(classname, operation)

Arguments

classname

(character)

operation

(expression as character string)

Details

Preprocessing techniques defined with setpreprocessor() can be combined to a phase. Phases defined with setphase() can be combined to a grid of combinations with setgrid().

The user-defined S4 class definitions are stored in global environment and thus the function can not be used from an other package.

scaleexample <- function(dataobject) dataobject <- initializedataclassobject(data.frame(x=scale(dataobject@x), dataobject@y)) setpreprocessor("scaleexample", "scaleexample(dataobject)")

Value

NULL, side-effect: definition of S4 class derived from PreprocessorClass and corresponding transformdata-method


preprocomb documentation built on May 2, 2019, 3:23 a.m.