Learn R Programming

spectrino (version 2.0.0)

spnGetTree: 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.

See Also

spnGetSpc , spnGetGrp, spnGetRefer

Examples

Run this code
# NOT RUN {
# 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)
# }

Run the code above in your browser using DataLab