PrComp: Class PrComp

Description Usage Arguments Details Value Slots Author(s) Examples

Description

Class PrComp is a wrapper for the S3 function prcomp

PrComp is a PCA constructor function

Usage

1
prComp(dataObject, ...)

Arguments

dataObject

object of class MassSpectra

...

additional args for 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.

Value

object of class PrComp

Slots

scale

logical see description of stats::prcomp

center

vector see description of stats::prcomp

sdev

vector see description of stats::prcomp

Author(s)

Lorenz Gerber <lorenz.gerber@slu.se>

Examples

1
2
3
4
5
6
7
8
9
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)

tofsims documentation built on Nov. 8, 2020, 5:10 p.m.