Learn R Programming

oncomodel (version 1.0)

subtree: Subtree

Description

Computes the subtree rooted at a given node.

Usage

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

Run this code
  data(kidney)
  subtree(14, kidney$res$tree)

Run the code above in your browser using DataLab