TreeTools (version 0.1.3)

in.Splits: Splits in Splits object

Description

in.Splits is an equivalent to %in% that can be applied to objects of class Splits.

Usage

in.Splits(x, table, incomparables = NULL)

Arguments

x, table

Object of class Splits.

incomparables

A vector of values that cannot be matched. Any value in x matching a value in this vector is assigned the nomatch value. For historical reasons, FALSE is equivalent to NULL.

Value

A logical vector specifying which of the splits in x are present in table.

See Also

Other Splits operations: NSplits, NTip, TipLabels, TipsInSplits, as.Splits, match.Splits

Examples

Run this code
# NOT RUN {
splits1 <- as.Splits(BalancedTree(7))
splits2 <- as.Splits(PectinateTree(7))

in.Splits(splits1, splits2)

# }

Run the code above in your browser using DataCamp Workspace