extract.partitionsNumber: Extract from object partitionsNumber
Description
extract.partitionsNumber
extracts the number of partitions for a
given sub-tree, either marked or non-marked.
Usage
"extract"(x, node = attr(x, "ntaxa") + 1, npart = attr(x, "npart"), marqued = FALSE, ...)
Arguments
node
the root node of the subtree where to get the result.
Default to the root of the tree.
npart
the number of partitions (colors) allowed at the tips.
Default to the value used in the call of function
partitionsNumber
(the maximum). marqued
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.
Value
the number of partitions with npart colors, on the sub-tree starting
at node, marqued or not.