phylo2vectors: Convert phylo to vectors

Description Usage Arguments Value Author(s) Examples

View source: R/phylo2vectors.R

Description

Convert phylo objects onto a set of vectors of markov chains that carachterize the phylogenetic tree

Usage

1

Arguments

tree

phylo object

Value

wt

waiting times of the tree

E

binary vector specifying if speciation or extinction

S

complementary vector specifiying which species got extincted or speciated

n

vector containing the number of species

Author(s)

F. Richter M.

Examples

1
2
3
4
s = sim.tree()
all.equal(s$tree$wt,phylo2vectors(s$phylo)$wt)
all.equal(s$tree$E,phylo2vectors(s$phylo)$E)
all.equal(s$tree$n,phylo2vectors(s$phylo)$n)

franciscorichter/dmea02 documentation built on March 21, 2020, 3:46 a.m.