getStatesFromPhenTree: Returns a list of states in node order from a phenotype tree

View source: R/RERfuncs.R

getStatesFromPhenTreeR Documentation

Returns a list of states in node order from a phenotype tree

Description

Returns a list of states in node order from a phenotype tree

Usage

getStatesFromPhenTree(phenTree, root_state, tipvals)

Arguments

phenTree

The phenotype tree returned by char2TreeCategorical

root_state

The state of the root node, this is not stored along the edge lengths of the tree

tipvals

The states of the tips of the tree in order of phenTree$tip.label

Value

Returns a vector of the category states of species in order of the nodes in the tree


nclark-lab/RERconverge documentation built on March 2, 2024, 8:51 a.m.