child_list_to_transmat: Create transition matrix from tree children list

View source: R/child_list_to_transmat.R

child_list_to_transmatR Documentation

Create transition matrix from tree children list

Description

Create transition matrix from tree children list by parents.

Usage

child_list_to_transmat(tree)

Arguments

tree

parent-child node list.

Value

matrix

Examples


child_list_to_transmat(tree =
                         list('1' = c(2, 3),
                              '2' = c(4),
                              '3' = c(6, 7)))


n8thangreen/CEdecisiontree documentation built on Sept. 13, 2022, 5:25 a.m.