Data Processing on Predictor Variables (Deprecated)
processData is used to estimate data processing parameters and
applyProcessing takes the results and applies them to data objects
processData(x, center = TRUE, scale = TRUE, na.remove = TRUE) applyProcessing(x, object)
- A matrix or data frame with variables in rows and samples in columns
- A boolean to center the data.
- A boolean to scale the data.
NAvalues be removed?
- the results from a previous call to
These functions are deprecated and have been replaced by the
preProcess class. In a few more versions, they will not be around.
x, after it has been processed.
set.seed(115) xData <- matrix(rgamma(6 * 4, 5), 6) trainValues01 <- apply(xData, 2, processData) applyProcessing(xData, trainValues01)