Description Usage Arguments Details Value
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.
1 | setpreprocessor(classname, operation)
|
classname |
(character) |
operation |
(expression as character string) |
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)")
NULL, side-effect: definition of S4 class derived from PreprocessorClass and corresponding transformdata-method
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.