spnGetTree {spectrino}R Documentation

Gets specs from all the groups of the top tab/spec-tree

Description

Get spectra from all the groups of the top tab/spec-tree. Only the checked ones or all of them. Variables are by columns; measurements are by rows. The reason is "prcomp" principal component analysis accepts that order of data.
Excluding the spectra from a group called "unknowns". That protected name is supposed to be for testing purposes only, so the data from that group are not included in all-data-get command.

Usage

spnGetTree(OnlyChecked)

Arguments

OnlyChecked

- logical; if true gets only the checked specs

Value

spnGetTree returns the matrix of specs from all the groups.

Author(s)

Teodor Krastev

See Also

spnGetSpc , spnGetGrp, spnGetRefer

Examples

# Initialization of Spectrino
spnNew() 

# generate test set
spnOpenTree("<test>")

# all the specs from all the groups (excluding "unknowns" group, if any)
m1 <- spnGetTree(FALSE) 

# Release of Spectrino
spnFree(TRUE)

[Package spectrino version 2.0.0 Index]