| PrComp-class {tofsims} | R Documentation |
Class PrComp is a wrapper for the S3 function prcomp
PrComp is a PCA constructor function
prComp(dataObject, ...)
dataObject |
object of class MassSpectra |
... |
additional args for prcomp |
Class PrComp is a wrapper for the S3 function prcomp
PrComp constructor function uses call by reference. The new object is put
into the analysis slot of the dataObject on which PCA was calculated.
object of class PrComp
scalelogical see description of stats::prcomp
centervector see description of stats::prcomp
sdevvector see description of stats::prcomp
Lorenz Gerber <lorenz.gerber@slu.se>
testImage<-MassImage('dummy')
testImage<-prComp(testImage)
image(analysis(testImage, 1), comp = 1)
## Not run:
library(tofsimsData)
data(tofsimsData)
testImage<-prComp(testImage)
image(analysis(testImage, 1), comp = 1)
## End(Not run)