Learn R Programming

nLTT (version 1.4.9)

get_average_nltt_matrix: Get the average nLTT from a collection of phylogenies

Description

Get the average nLTT from a collection of phylogenies

Usage

get_average_nltt_matrix(phylogenies, dt = 0.001)

Value

A matrix of timepoints with the average number of (normalized) lineages through (normalized) time

Arguments

phylogenies

the phylogenies, supplied as either a list or a multiPhylo object, where the phylogenies are of type 'phylo'

dt

The timestep resolution, where 1/dt is the number of points evaluated

Author

Richèl J.C. Bilderbeek

Examples

Run this code
  get_average_nltt_matrix(c(ape::rcoal(10), ape::rcoal(20)))

Run the code above in your browser using DataLab