get_norm_brts: Collect the normalized branching times from the stem age

Description Usage Arguments Value Author(s) Examples

View source: R/get_norm_brts.R

Description

Collect the normalized branching times from the stem age

Usage

1
get_norm_brts(phylogeny)

Arguments

phylogeny

a phylogeny of class 'phylo'

Value

branching times, in time units before the present

Author(s)

Richel Bilderbeek

Examples

1
2
3
4
  phylogeny <- ape::read.tree(text = "((a:2,b:2):1,c:3);")
  phylogeny$root.edge <- 2 # nolint ape variable name
  testthat::expect_true(
    all(nLTT::get_branching_times(phylogeny) == c(5, 3, 2)))

nLTT documentation built on Jan. 13, 2020, 9:06 a.m.