subtree: Subtree

Description Usage Arguments Value Examples

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)

oncomodel documentation built on May 1, 2019, 8:01 p.m.