addLayer | R Documentation |
This functions adds the layer information to each node in a list with trees that was obtained by getTreeranger.
addLayer(trees)
trees |
list of trees created by getTreeranger |
a list with trees. Each row of the list elements corresponds to a node of the respective tree and the columns correspond to:
nodeID: ID of the respective node (important for left and right daughters in the next columns)
leftdaughter: ID of the left daughter of this node
rightdaughter: ID of the right daughter of this node
splitvariable: ID of the split variable
splitpoint: splitpoint of the split variable
status: "0" for terminal and "1" for non-terminal
layer: layer information (0 means root node, 1 means 1 layer below root, etc)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.