shifts.list_to_matrix: Compute the matrix of shifts.

View source: R/shifts_manipulations.R

shifts.list_to_matrixR Documentation

Compute the matrix of shifts.

Description

shifts.list_to_matrix takes the list description of the shifts to give the matrix representation of the shifts : the b th element of the lth line has the value of the shift on character l occurring on that branch b

Usage

shifts.list_to_matrix(phy, shifts, p = nrow(shifts$values))

Arguments

phy

Input tree.

shifts

list description of the shifts : shifts$edges, shifts$values.

p

number of traits (optional, needed when shifts = NULL).

Value

Matrix p x Nedge of length nbranch.

See Also

shifts.matrix_to_list


pbastide/PhylogeneticEM documentation built on Feb. 12, 2024, 1:27 a.m.