
Last chance! 50% off unlimited learning
Sale ends in
The "where" entry of a tree object denotes leaves by row numbers in the "frame" object. This converts those to actual leaf numbers.
leaf.numbers(tree)
Item of class "tree".
Vector, the same length as tree$where, giving leaf numbers.