View source: R/NA.reconstruction.R
second.uppass | R Documentation |
Applies a second up pass to a node
second.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));")
NA_matrix <- make.states.matrix(tree, "01?-")
## Apply the second uppass
(NA_matrix <- second.uppass(second.downpass(first.uppass(first.downpass(NA_matrix)))))
## Access the states
NA_matrix$Up2
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.