calc_diffs: For each internal node, calculate the difference in state...

Description Usage Arguments Value

View source: R/utility_functions.R

Description

For each internal node, calculate the difference in state values at the two child nodes

Usage

1
calc_diffs(phy, states)

Arguments

phy

An ape::phylo object

states

A vector with length equal to nodes with the state at each node

Value

A vector of values corresponding to each internal node with the value difference


caseywdunn/hutan documentation built on June 12, 2020, 3:12 a.m.