View source: R/Fitch.reconstruction.R
fitch.downpass | R Documentation |
Applies a Fitch down pass to a node
fitch.downpass(states_matrix)
states_matrix |
A |
Thomas Guillerme
apply.reconstruction
## Create a states matrix for reconstruction
tree <- ape::read.tree(text = "((a,b),(c,d));")
matrix <- make.states.matrix(tree, "01?-", inapplicable = 1)
## Apply the fitch downpass
(matrix <- fitch.downpass(matrix))
## Access the states
matrix$Dp1
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.