checkValidPhylo: Check the Structure of a "phylo" Object

Description Usage Arguments Value Author(s) Examples

View source: R/checkValidPhylo.R

Description

This function takes as single argument an object (phy), checks its elements, and prints a diagnostic. All problems are printed with a label: FATAL (will likely cause an error or a crash) or MODERATE (may cause some problems).

This function is mainly intended for developers creating "phylo" objects from scratch.

Usage

1

Arguments

phy

an object of class "phylo".

Value

NULL.

Author(s)

Emmanuel Paradis

Examples

1
2
3
4
tr <- rtree(3)
checkValidPhylo(tr)
tr$edge[1] <- 0
checkValidPhylo(tr)

ape documentation built on May 20, 2017, 3:54 a.m.

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