Learn R Programming

treeClust (version 1.1-7)

leaf.numbers: Convert "where" entry of tree frame into leaf numbers

Description

The "where" entry of a tree object denotes leaves by row numbers in the "frame" object. This converts those to actual leaf numbers.

Usage

leaf.numbers(tree)

Arguments

tree

Item of class "tree".

Value

Vector, the same length as tree$where, giving leaf numbers.