fitch.uppass: Fitch uppass

View source: R/Fitch.reconstruction.R

fitch.uppassR Documentation

Fitch uppass

Description

Applies a Fitch up pass to a node

Usage

fitch.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));")
matrix <- make.states.matrix(tree, "01?-", inapplicable = 1)

## Apply the fitch downpass
(matrix <- fitch.uppass(fitch.downpass(matrix)))

## Access the states
matrix$Up1


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