subtree: Subtree

Description

Computes the subtree rooted at a given node.

Usage

1
  subtree(node, tree)

Arguments

tree

a tree in matrix format.

node

a node of the tree.

Value

The edge indices of the subtree rooted at the given node.

Examples

1
2
  data(kidney)
  subtree(14, kidney$res$tree)

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

All documentation is copyright its authors; we didn't write any of that.