R: Which splits are compatible?

CompatibleSplits {TreeTools} | R Documentation

## Which splits are compatible?

### Description

Which splits are compatible?

### Usage

    CompatibleSplits(splits, splits2)

    .CompatibleSplit(a, b, nTip)

    .CompatibleRaws(rawA, rawB, bitmask)

### Arguments

`splits` | An object of class `Splits`.
`splits2` | A second `Splits` object.
`a, b` | Raw representations of splits, from a row of a `Splits` object.
`rawA, rawB` | Raw representations of splits.
`bitmask` | Raw masking bits that do not correspond to tips.

### Value

`CompatibleSplits` returns a logical matrix specifying whether each split in `splits` is compatible with each split in `splits2`.

`.CompatibleSplit` returns a logical vector stating whether splits are compatible.

`.CompatibleRaws` returns a logical vector specifying whether input raws are compatible.

### Author(s)

Martin R. Smith (martin.smith@durham.ac.uk)

### Examples

    splits <- as.Splits(BalancedTree(8))
    splits2 <- as.Splits(PectinateTree(8))

    summary(splits)
    summary(splits2)

    CompatibleSplits(splits, splits2)

[Package TreeTools version 1.7.2 Index]