spnGetGrp: Get a group data in the top tab/spec-tree

Description Usage Arguments Value Author(s) See Also Examples

Description

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.

Usage

1
spnGetGrp(OnlyChecked,Grp)

Arguments

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.

Value

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.

Author(s)

Teodor Krastev

See Also

spnGetSpc , spnGetTree , spnGetRefer

Examples

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

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