Description Usage Arguments Value Examples
This function allows you to create a decision tree object.
1 | create_tree(edgelist)
|
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) |
graph object with the appropriate properties and node types
1 | tree <- create_tree(read.csv("branches.csv"))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.