[R] Preprocessing with Caret package

Ruima E. ruimaximo at gmail.com
Mon Nov 17 17:30:39 CET 2014


Hi,

Please consider the following code

library (caret)
x=matrix(c(12:131),2)
p=preProcess(x, method=c("center","scale"));
x.prep=predict(p,x)

y.prep=x.prep[60,60]

How can I get the value of y (the value from y.pre not centered and not
scaled ) using p and y.prep?

Thank you!
Rui

	[[alternative HTML version deleted]]



More information about the R-help mailing list