depth.tree: Get the distance from a node to the root of a tree

Description Usage Arguments Value Author(s)

View source: R/trees.R

Description

Get the distance from a node to the root of a tree

Usage

1
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.

Author(s)

Melissa J. Hubisz and Adam Siepel


rphast documentation built on May 1, 2019, 9:26 p.m.