tofsims (version 1.0.2)

PrComp-class: Class PrComp

Description

Class PrComp is a wrapper for the S3 function prcomp

PrComp is a PCA constructor function

Usage

prComp(dataObject, ...)

Arguments

dataObject
object of class MassSpectra
...
additional args for prcomp

Value

  • object of class PrComp

Details

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.

Examples

testImage<-MassImage('dummy')
testImage<-prComp(testImage)
image(analysis(testImage, 1), comp = 1)
library(tofsimsData)
data(tofsimsData)
testImage<-prComp(testImage)
image(analysis(testImage, 1), comp = 1)