Skip to contents

Recursively prunes a tree based on prune markers set by `add_prune`.

Usage

prune_tree(node)

Arguments

node

The root node of the tree.

Value

The pruned tree or NULL if the root node is pruned.

Examples

if (FALSE) { # \dontrun{
  pruned_tree <- prune_tree(root_node)
} # }