make_decision_tree: Evaluate utilities

View source: R/make_tree.R

make_decision_treeR Documentation

Evaluate utilities

Description

Create decision tree for MAUT models exporting to an igraph object.

Usage

make_decision_tree(tree.data)

Arguments

tree.data

data.table with decision tree information.

Details

With the tree information loaded by the read_tree the decision tree could be represented like an igraph object.

Value

igraph object containing the graph of the decision tree.

Author(s)

Pedro Guarderas, Andrés Lopez pedro.felipe.guarderas@gmail.com

See Also

read_tree

Examples

library( data.table )
library( igraph )
file <- system.file("extdata", "tree.csv", package = "mau" )
tree.data <- read_tree( file, skip = 0, nrows = 8 )
tree <- make_decision_tree( tree.data )
plot( tree )

pedroguarderas/mau documentation built on Oct. 30, 2023, 4:20 a.m.