nodepath {ConsRankClass} | R Documentation |
Given an object of the class "ranktree", it visualize the path leading to the terminal node
nodepath(termnode, Tree)
termnode |
The terminal node of which the path has to be extracted |
Tree |
An object of the class "ranktree" |
The path leading to the terminal node
Antonio D'Ambrosio antdambr@unina.it
ranktree
, treepaths
, getsubtree
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)