View source: R/partitionsNumber.R
extract.partitionsNumber | R Documentation |
partitionsNumber
extract.partitionsNumber
extracts the number of partitions for a
given sub-tree, either marked or non-marked.
## S3 method for class 'partitionsNumber'
extract(
x,
node = attr(x, "ntaxa") + 1,
npart = attr(x, "npart"),
marked = FALSE,
...
)
x |
an object of class |
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
|
marked |
whether to extract the marked (TRUE) or un-marked (FALSE) partitions. The number of models is the number of un-marked partitions. Default to FALSE. |
... |
unused. |
the number of partitions with npart colors, on the sub-tree starting at node, marked or not.
partitionsNumber
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.