Learn R Programming

TreeSearch (version 1.5.1)

SPRWarning: TBR Warning Print a warning and return given tree

Description

TBR Warning Print a warning and return given tree

Usage

SPRWarning(parent, child, error)

TBRWarning(parent, child, error)

Value

A list with the entries parent, child.

Arguments

parent

Integer vector corresponding to the first column of the edge matrix of a tree of class phylo, i.e. tree$edge[, 1].

child

Integer vector corresponding to the second column of the edge matrix of a tree of class phylo, i.e. tree$edge[, 2].

error

error message to report

Functions

  • SPRWarning(): for SPR rearrangements

Author

Martin R. Smith

Examples

Run this code
suppressWarnings(TBRWarning(0, 0, "Message text")) # will trigger warning

Run the code above in your browser using DataLab