build_tree_ranges_fast: Fast clade range building with precomputed descendants

View source: R/utils.R

build_tree_ranges_fastR Documentation

Fast clade range building with precomputed descendants

Description

Lightweight version of build_tree_ranges() that uses precomputed descendant information and skips validation.

Usage

build_tree_ranges_fast(
  tree,
  tip_comm,
  data_type,
  descendants,
  clade_fun = NULL
)

Arguments

tree

A phylo object

tip_comm

Tip community matrix (sites x tips)

data_type

Data type string

descendants

Precomputed list from precompute_descendants()

clade_fun

Custom aggregation function (used if data_type is "other")

Value

Full community matrix (sites x edges)


phylospatial documentation built on Dec. 24, 2025, 1:06 a.m.