spnDelSpc {spectrino}R Documentation

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

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

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

# 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)

[Package spectrino version 2.0.0 Index]