getNodeAges: getNodeAges

Description Usage Arguments Value Author(s) Examples

View source: R/SkylineDatedTips_extension.R

Description

Returns a vector with the depths, or heights of the nodes in the tree

Depends on a hidden function nodeHeight, from phangorn.

Values by default are backwards from the youngest tip which is zero. They can be forward relative to the root if from_past=TRUE.

Usage

1
getNodeAges(x, from_past = F)

Arguments

x

A phylo object

from_past

If FALSE (default) the node ages increase backwards in time, with the most recent tip being zero. If TRUE the root node is zero and the node ages increase towards the tips of the tree.

Value

For a tree with n tips, the vector is <tip1, tip2...tipn, root, internal_node2, internal_node3>

Author(s)

George Shirreff <georgeshirreff@gmail.com>

Examples

1
library(ape)

georgeshirreff/multiNe documentation built on May 17, 2019, 1:15 a.m.