Learn R Programming

spectrino (version 2.0.0)

spnActTree: 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.

See Also

spnActGrp

Examples

Run this code
# NOT RUN {
# 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)
# }

Run the code above in your browser using DataLab