| PrinComp-class {tofsims} | R Documentation |
Class PrinComp is a wrapper for the S3 function princomp
PrinComp is a PCA constructor function
prinComp(dataObject, ...)
dataObject |
object of class MassSpectra |
... |
additional args |
Class PrinComp is a wrapper for the S3 function princomp
PrinComp 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 prinComp
scalevector see description of stats::princomp
n.obsnumeric see description of stats::princomp
calllanguage see description of stats::princomp
centercenter see description of stats::princomp
sdevvector see description of stats::princomp
Lorenz Gerber <lorenz.gerber@slu.se>
testImage <- MassImage('dummy')
testImage<-prinComp(testImage)
image(analysis(testImage, 1), comp = 1)
## Not run:
library(tofsimsData)
data(tofsimsData)
testImage<-prinComp(testImage)
image(analysis(testImage), 1), comp = 1)
## End(Not run)