View source: R/transmat_to_child_list.R
transmat_to_child_list | R Documentation |
Create tree children list by parents from a transition matrix.
transmat_to_child_list(transmat)
transmat |
Transition probability matrix. Rows are from nodes and columns are to nodes. |
list
transmat <- list(prob = matrix(data = c(NA, 0.5, 0.5), nrow = 1), vals = matrix(data = c(NA, 1, 2), nrow = 1) ) transmat_to_child_list(transmat$prob)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.