first.downpass: First downpass

View source: R/NA.reconstruction.R

first.downpassR Documentation

First downpass

Description

Applies a first down pass to a node

Usage

first.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));")
NA_matrix <- make.states.matrix(tree, "01?-")

## Apply the first downpass
(NA_matrix <- first.downpass(NA_matrix))

## Access the states
NA_matrix$Dp1


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