| nodepath {ConsRankClass} | R Documentation | 
Path of a terminal node
Description
Given an object of the class "ranktree", it visualize the path leading to the terminal node
Usage
nodepath(termnode, Tree)
Arguments
termnode | 
 The terminal node of which the path has to be extracted  | 
Tree | 
 An object of the class "ranktree"  | 
Value
The path leading to the terminal node
Author(s)
Antonio D'Ambrosio antdambr@unina.it
See Also
ranktree, treepaths, getsubtree
Examples
data(Irish)
#build the tree with default options
tree <- ranktree(Irish$rankings,Irish$predictors)
#get information about all the paths leading to terminal nodes
paths <- treepaths(tree)
#see the path for terminal node number 8
nodepath(termnode=8,tree)
 
[Package ConsRankClass version 1.0.1 Index]