Description Usage Arguments Value Author(s) Examples
View source: R/phylo2vectors.R
Convert phylo objects onto a set of vectors of markov chains that carachterize the phylogenetic tree
1 | phylo2vectors(tree)
|
tree |
phylo object |
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 |
F. Richter M.
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.