hs_PCA: Run PCA on a hyperspec object

Description Usage Arguments Examples

View source: R/hs_PCA.R

Description

Run PCA on a hyperspec object

Usage

1
hs_PCA(hs.x, ...)

Arguments

hs.x

hyperSpec object

...

Parameters to pass on to prcomp().

Examples

1
2
3
4
5
6
7
8
9
## Short example

# Load hyperSpec object
data("hs_example")

# Convert to MassSpectrum object
hs.x.proc <- hs_preprocess(hs_example)

df.PCA <- hs_PCA(hs.x.proc)

CMET-UGent/MicroRaman documentation built on July 25, 2020, 6:20 p.m.