
Last chance! 50% off unlimited learning
Sale ends in
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.
checkValidPhylo(phy)
an object of class "phylo"
.
NULL.
# NOT RUN {
tr <- rtree(3)
checkValidPhylo(tr)
tr$edge[1] <- 0
checkValidPhylo(tr)
# }
Run the code above in your browser using DataLab