Learn R Programming

mau (version 0.1.2)

Make.Decision.Tree: 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.

Value

igraph object containing the graph of the decision tree.

Details

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

See Also

Read.Tree

Examples

Run this code
# NOT RUN {
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 )
# }

Run the code above in your browser using DataLab