mean_dist_to_tips: Mean distance from internal nodes to descendant tips

View source: R/branch_length_calculations.R

mean_dist_to_tipsR Documentation

Mean distance from internal nodes to descendant tips

Description

Calculates the mean distance from each internal node to its descendant tips

Usage

mean_dist_to_tips(tree)

Arguments

tree

a phylo class tree object that is binary (see multi2di)

Details

This is a function used by calculate.blw when method='mean.descendants', there this function is called twice, once for each direct child of a given internal node and the results are summed for each node.

Value

vector (named if internal nodes are named)

Examples

tr <- named_rtree(5)
mean_dist_to_tips(tr)

jsilve24/philr documentation built on Oct. 17, 2024, 4:59 p.m.