make_decision_tree | R Documentation |
Create decision tree for MAUT models exporting to an igraph object.
make_decision_tree(tree.data)
tree.data |
data.table with decision tree information. |
With the tree information loaded by the read_tree
the decision tree
could be represented like an igraph object.
igraph object containing the graph of the decision tree.
Pedro Guarderas, Andrés Lopez pedro.felipe.guarderas@gmail.com
read_tree
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 )
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.