is.tree: Compare with Tree Format

Description Usage Arguments Details Examples

Description

Tests whether a 2 x n matrix represents a rooted tree in the format accepted by the oncomodel package.

Usage

1
  is.tree(tree)

Arguments

tree

a 2 x n matrix.

Details

In the accepted format, the columns of the integer matrix represent the edges of the tree, with the entry in the first row being closer to the root. The leaves have to be the smallest integers of the matrix. If an edge has a smaller column index than a second one, it may not be on the path from the second edge to the root (the order of the columns has to be compatible with the partial order of the edges of the tree).

Examples

1
2
  data(kidney)
  is.tree(kidney$res$tree)


Search within the oncomodel package
Search all R packages, documentation and source code

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

Please suggest features or report bugs with the GitHub issue tracker.

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