Rdocumentation
powered by
Learn R Programming
rphast (version 1.0)
depth.tree: Get the distance from a node to the root of a tree...
Description
Get the distance from a node to the root of a tree
Usage
depth.tree(tree, node)
Arguments
tree
A vector of character strings, each containing a newick tree
node
A vector of character strings, giving the node name to use for each tree. Will be recycled to the length of the first argument.
Value
A numeric vector containing the distance from each given node to the root of the corresponding tree.