R/leaf.numbers.R

Defines functions leaf.numbers

Documented in leaf.numbers

leaf.numbers <- function(tree)
  {
    where <- tree$where
    leaves <- as.numeric(dimnames(tree$frame)[[1]])
    leaves[where]
  }

Try the treeClust package in your browser

Any scripts or data that you put into this service are public.

treeClust documentation built on Aug. 8, 2025, 7:19 p.m.