TBRWarning: TBR Warning Print a warning and return given tree

SPRWarningR Documentation

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)

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

Value

A list with the entries parent, child.

Functions

  • SPRWarning(): for SPR rearrangements

Author(s)

Martin R. Smith

Examples

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


TreeSearch documentation built on Aug. 26, 2023, 9:06 a.m.