fitch.downpass: Fitch downpass

View source: R/Fitch.reconstruction.R

fitch.downpassR Documentation

Fitch downpass

Description

Applies a Fitch down pass to a node

Usage

fitch.downpass(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.downpass(matrix))

## Access the states
matrix$Dp1


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