partitionsNumber
extract.partitionsNumber
extracts the number of partitions for a
given sub-tree, either marked or non-marked.
# S3 method for partitionsNumber
extract(x, node = attr(x, "ntaxa") + 1,
npart = attr(x, "npart"), marqued = FALSE, ...)
an object of class partitionsNumber
, result of function
partitionsNumber
.
the root node of the subtree where to get the result. Default to the root of the tree.
the number of partitions (colors) allowed at the tips.
Default to the value used in the call of function
partitionsNumber
(the maximum).
whether to extract the marqued (TRUE) or un-marqued (FALSE) partitions. The number of models is the number of un-marqued partitions. Default to FALSE.
unused.
the number of partitions with npart colors, on the sub-tree starting at node, marqued or not.