Learn R Programming

phylodyn (version 0.9.0)

read_times: Extracts coalescent times from a Multi-Phylo object

Description

Extracts coalescent times from a Multi-Phylo object

Usage

read_times(MyTree, sim, factor)

Arguments

MyTree
multiPhylo object containing coalescent trees
sim
integer specifying number of trees to read
factor
numeric value to scale all the times

Value

A matrix of sim rows. Entry x_i,j has the n-j+1-th coalescent time of the i-th tree

Examples

Run this code
read_times(ape::rmtree(3,5),3,1)

Run the code above in your browser using DataLab