spnDelSpc: Delete a spec from a group in the top tab/spec-tree

Description Usage Arguments Value Author(s) See Also Examples

Description

Delete Spc spectrum from Grp group in the top tab/spec-tree. If Spc="*" or "<ALL>" then delete all of the spectra in that group them.

Usage

1
spnDelSpc(Grp,Spc)

Arguments

Grp

- the name(character string) or the index(integer) of the group; 0 - active group.

Spc

- the name(character string) or the index(integer) of spec; 0 - selected spec; "*" or "<ALL>" - all specs.

Value

spnDelSpc The function returns number of the spectra in that group after the deleting spnGetSpcCount(false,Grp)

Author(s)

Teodor Krastev

See Also

spnDelGrp

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
# Initialization of Spectrino
spnNew() 

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

# delete third spec from the first group 
# i1 - the number of specs after deleting
i1 <- spnDelSpc(1,3) 

# delete all the specs from the active group;
spnDelSpc(0,"*") 

# Release of Spectrino
#spnFree(TRUE)

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