Make.Decision.Tree: Evaluate utilities

Description Usage Arguments Details Value Author(s) See Also Examples

View source: R/Make.Tree.R

Description

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

Usage

1
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<c3><a9>s Lopez pedro.felipe.guarderas@gmail.com

See Also

Read.Tree

Examples

1
2
3
4
5
6
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 )

Example output

Attaching package: 'igraph'

The following objects are masked from 'package:stats':

    decompose, spectrum

The following object is masked from 'package:base':

    union

mau documentation built on May 1, 2019, 8:23 p.m.