https://github.com/cran/caret
Revision 8a80540892d2f5d673ae1ca36b342ac03a152883 authored by Max Kuhn on 09 October 2007, 12:54:23 UTC, committed by cran-robot on 09 October 2007, 12:54:23 UTC
1 parent 5ddc015
Tip revision: 8a80540892d2f5d673ae1ca36b342ac03a152883 authored by Max Kuhn on 09 October 2007, 12:54:23 UTC
version 2.29
version 2.29
Tip revision: 8a80540
applyProcessing.Rd
\name{applyProcessing}
\alias{applyProcessing}
\alias{processData}
\title{Data Processing on Predictor Variables}
\description{
\code{processData} is used to estimate data processing parameters and
\code{applyProcessing} takes the results and applies them to data objects
}
\usage{
processData(x, center = TRUE, scale = TRUE, na.remove = TRUE)
applyProcessing(x, object)
}
\arguments{
\item{x}{A matrix or data frame with variables in rows and samples in columns}
\item{center}{A boolean to center the data.}
\item{scale}{A boolean to scale the data.}
\item{na.remove}{Should \code{NA} values be removed?}
\item{object}{the results from a previous call to \link{processData}.}
}
\value{
\code{x}, after it has been processed.
}
\author{Max Kuhn}
\seealso{\code{\link{applyProcessing}} }
\examples{
set.seed(115)
xData <- matrix(rgamma(6 * 4, 5), 6)
trainValues01 <- apply(xData, 2, processData)
applyProcessing(xData, trainValues01)
}
\keyword{manip}
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...