View source: R/shifts_manipulations.R
shifts.list_to_matrix | R Documentation |
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
shifts.list_to_matrix(phy, shifts, p = nrow(shifts$values))
phy |
Input tree. |
shifts |
list description of the shifts : shifts$edges, shifts$values. |
p |
number of traits (optional, needed when shifts = NULL). |
Matrix p x Nedge of length nbranch.
shifts.matrix_to_list
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.