second.uppass: Second uppass

View source: R/NA.reconstruction.R

second.uppassR Documentation

Second uppass

Description

Applies a second up pass to a node

Usage

second.uppass(states_matrix)

Arguments

states_matrix

A list contains all the states and the activations

Author(s)

Thomas Guillerme

See Also

apply.reconstruction

Examples

## 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


TGuillerme/Inapp documentation built on Feb. 4, 2024, 7:26 a.m.