Make.Decision.Tree {mau} | 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
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 )