applyProcessing

0th

Percentile

Data Processing on Predictor Variables

processData is used to estimate data processing parameters and applyProcessing takes the results and applies them to data objects

Keywords
manip
Usage
processData(x, center = TRUE, scale = TRUE, na.remove = TRUE)
applyProcessing(x, object)
Arguments
x
A matrix or data frame with variables in rows and samples in columns
center
A boolean to center the data.
scale
A boolean to scale the data.
na.remove
Should NA values be removed?
object
the results from a previous call to processData.
Value

  • x, after it has been processed.

See Also

applyProcessing

Aliases
  • applyProcessing
  • processData
Examples
set.seed(115)
xData <- matrix(rgamma(6 * 4, 5), 6)

trainValues01 <- apply(xData, 2, processData)
applyProcessing(xData, trainValues01)
Documentation reproduced from package caret, version 3.08, License: GPL-2

Community examples

Looks like there are no examples yet.