PrinComp: Class PrinComp

Description Usage Arguments Details Value Slots Author(s) Examples

Description

Class PrinComp is a wrapper for the S3 function princomp

PrinComp is a PCA constructor function

Usage

1
prinComp(dataObject, ...)

Arguments

dataObject

object of class MassSpectra

...

additional args

Details

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.

Value

object of class prinComp

Slots

scale

vector see description of stats::princomp

n.obs

numeric see description of stats::princomp

call

language see description of stats::princomp

center

center see description of stats::princomp

sdev

vector see description of stats::princomp

Author(s)

Lorenz Gerber <lorenz.gerber@slu.se>

Examples

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

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