mean_dist_to_tips {philr}R 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)

[Package philr version 1.20.0 Index]