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

Description Usage Arguments Value Author(s) See Also Examples

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

1
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

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

spectrino documentation built on June 4, 2019, 1:02 a.m.