spnActTree {spectrino}R Documentation

Get/Set active tree (the top tab)

Description

Get/Set active tree to Tree by name or index. if Tree=0 only get active tree index; else set one

Usage

spnActTree(Tree)

Arguments

Tree

- the name(character string) or the index(integer) of the tree; if 0 - just gets the active tree index.

Value

spnActTree returns the index (1-based index) of the active tree.

Author(s)

Teodor Krastev

See Also

spnActGrp

Examples

# Initialization of Spectrino
spnNew() 

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

# set third group to be active
spnActTree(1)

# get the number of active group
i <- spnActGrp(0) 

# Release of Spectrino
spnFree(TRUE)

[Package spectrino version 2.0.0 Index]