fillNodesDepth: Fill the "depth" column of node dataframe

View source: R/summaryStatistics.R

fillNodesDepthR Documentation

Fill the "depth" column of node dataframe

Description

Fill the "depth" column of the node dataframe with corresponding depth. The depth is the number of edges between the node and the root. For instance, for the following simple phylogeny root—>—>B, depth(A) = 1 and depth(B) = 2 For more detail, see Saulnier et al., 2014, PLOS.

Usage

fillNodesDepth(df.nodes, phylo)

Arguments

df.nodes

dataframe created by createNodesDf

phylo

phylogeny (ape format)

Value

dataframe

See Also

createNodesDf,


ilajaait/deephylo documentation built on April 10, 2022, 11:03 a.m.