Last data update: 2014.03.03

R: constructor function for adding a new preprocessing technique...
setpreprocessorR Documentation

constructor function for adding a new preprocessing technique to the system

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

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

Results