R: Extract from object 'partitionsNumber'

extract.partitionsNumber {PhylogeneticEM} | R Documentation

## Extract from object `partitionsNumber`

### Description

`extract.partitionsNumber` extracts the number of partitions for a given sub-tree, either marked or non-marked.

### Usage

    ## S3 method for class 'partitionsNumber'
    extract(x, node = attr(x, "ntaxa") + 1,
      npart = attr(x, "npart"), marked = FALSE, ...)

### Arguments

`x` | an object of class `partitionsNumber`, result of function `partitionsNumber`.
`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).
`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.

### Value

the number of partitions with npart colors, on the sub-tree starting at node, marked or not.

### See Also

`partitionsNumber`

[Package PhylogeneticEM version 1.1.0 Index]