get_branching_times: Collect the branching times from the stem age

View source: R/get_branching_times.R

get_branching_timesR Documentation

Collect the branching times from the stem age

Description

Collect the branching times from the stem age

Usage

get_branching_times(phylogeny)

Arguments

phylogeny

a phylogeny of class 'phylo'

Value

branching times, in time units before the present

Author(s)

Richèl Bilderbeek

Examples

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

richelbilderbeek/nLTT documentation built on Aug. 23, 2023, 8 a.m.