Learn R Programming

TreeTools (version 1.12.0)

CompatibleSplits: Which splits are compatible?

Description

Which splits are compatible?

Usage

CompatibleSplits(splits, splits2)

.CompatibleSplit(a, b, nTip)

.CompatibleRaws(rawA, rawB, bitmask)

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.

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.

Examples

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

summary(splits)
summary(splits2)

CompatibleSplits(splits, splits2)

Run the code above in your browser using DataLab