View source: R/Fitch.reconstruction.R
fitch.uppass | R Documentation |
Applies a Fitch up pass to a node
fitch.uppass(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.uppass(fitch.downpass(matrix)))
## Access the states
matrix$Up1
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.