View source: R/parsimonyNumber.R
extract.enumerate_parsimony | R Documentation |
enumerate_parsimony
at a node.extract.enumerate_parsimony
returns a matrix containing all the
possible regime allocations for the nodes of a given subtree.
## S3 method for class 'enumerate_parsimony'
extract(
x,
node = attr(x$allocations, "ntaxa") + 1,
what = c("solutions", "number", "cost"),
...
)
x |
an object of class " |
node |
the node where to retrieve the parsimony number. Default to the root of the tree. |
what |
the quantity to retrieve. Either "solutions" for the full solutions, "number" for the number of solutions, or "cost" for the minimal cost of a solution. Default to "solutions" |
... |
unused |
A matrix with ntaxa + Nnode columns, and as many rows as the number of possible parsimonious reconstructions.
enumerate_parsimony
, plot.enumerate_parsimony
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.