spnGetGrp {spectrino} | R Documentation |
Get spectra from one spec-group (matrix) in the top tab/spec-tree. All the spectra in a group are assumed to have common X set of values, so if there is loaded spectrum in different X values, the spectrum is recalculated to fit that reference set.
spnGetGrp(OnlyChecked,Grp)
OnlyChecked |
- logical; if true gets only the checked specs. |
Grp |
- the name(character string) or the index(integer) of a group in the top tab/spec-tree; 0 - active group. |
spnGetGrp
returns a preprocessed group data in matrix. Spectra are always in rows (one spectrum is one row). The variables are columns, one variable (e.g. mass) is one column.
Teodor Krastev
spnGetSpc , spnGetTree , spnGetRefer
# Initialization of Spectrino spnNew() # generate test set spnOpenTree("<test>") # all the checked specs from the first group m1 <- spnGetGrp(TRUE,1) # all the specs from "Test2" group m2 <- spnGetGrp(FALSE,"Test2") # Release of Spectrino spnFree(TRUE)