ResolvedQuartets | R Documentation |
Counts how many quartets are resolved or unresolved in a given tree, following \insertCiteBrodal2013;textualQuartet.
ResolvedQuartets(tree, countTriplets = FALSE)
ResolvedTriplets(tree)
tree |
A tree of class |
countTriplets |
Logical; if |
Trees with more than 477 leaves risk encountering integer overflow errors, as the number of quartets is larger than can be stored in R's signed 32-bit integer representation. If warnings are thrown, check subsequent calculations for errors.
ResolvedQuartets()
returns a vector of length two, listing the
number of quartets (or triplets) that are [1]
resolved; [2]
unresolved
in the specified tree.
ResolvedTriplets()
: Convenience function to calculate the number of
resolved/unresolved triplets.
Martin R. Smith (martin.smith@durham.ac.uk)
Other quartet counting functions:
AllQuartets()
,
CompareQuartets()
,
CompareQuartetsMulti()
data(sq_trees)
ResolvedTriplets(sq_trees$collapse_some)
# Equivalent to:
ResolvedQuartets(sq_trees$collapse_some, countTriplets = TRUE)
vapply(sq_trees, ResolvedQuartets, integer(2))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.