create_tree: Create Decision Tree Function

Description Usage Arguments Value Examples

Description

This function allows you to create a decision tree object.

Usage

1
create_tree(edgelist)

Arguments

edgelist

a list of edges with the following fields, in any order: "from": source node for this edge "to": target node for this edge "name": edge name (optional) "outcome": edge outcome, i.e. target node label (optional) "type": source target type (optional, case insensitive), options: "D","decision" - decision node (square) "C","chance" - chance node (circle) "E","end" - end node (triangle, optional) "probability": edge probability <payoff1>,<p2>,...: any number of cost/effect fields (optional)

Value

graph object with the appropriate properties and node types

Examples

1
tree <- create_tree(read.csv("branches.csv"))

DARTH-git/Dectree documentation built on Feb. 6, 2020, 6:57 p.m.