Manipulating Subtrees
A split with two or more branches is known as a subtree. You can copy or cut a subtree from a given condition node and paste it to another condition node, or you can collapse or clear a subtree.
You usually copy and paste subtrees when you want to repeat the same splits on the same variables. Alternatively, you can:
- Copy and paste subtrees and then make minor edits in the new subtree.
- Collapse and clear subtrees.
When you copy or cut and paste subtrees, duplicate levels may be created. Duplicate levels are permitted in decision trees. The name of a duplicate level changes by having a number appended to the end.
To copy or cut a subtree:
- In Tree view, select a branch with a condition node that has the subtree you want to edit. All nodes below the selected node are edited.
- Select or . Alternatively, select the command from the shortcut menu.
- Select the leaf node where you want to paste the subtree.
- Select Note The Paste subtree command is enabled only if you have copied or cut a subtree from a condition node.
or choose the command from the shortcut menu.
To collapse a subtree:
- Select a branch with the condition node you want to collapse.
- Select Collapse subtree from the Edit menu or shortcut menu.
Tip You can restore the collapsed subtree by selecting Expand subtree from the Edit or shortcut menu or by clicking the arrow next to the collapsed tree.
To clear a subtree:
- Select a branch with the condition node you want to clear.
- Select Clear subtree from the Edit menu or use the command from the shortcut menu.