
Equivalent of match
for Splits
objects.
match.Splits(x, table, nomatch = NA_integer_, incomparables = NULL)
Object of class Splits
.
The value to be returned in the case where no match is found.
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
.
An integer vector specifying the position in table
that matches
each element in x
, or nomatch
if no match is found.
Other Splits operations:
NSplits()
,
NTip()
,
TipLabels()
,
TipsInSplits()
,
as.Splits()
,
in.Splits()
# NOT RUN {
splits1 <- as.Splits(BalancedTree(7))
splits2 <- as.Splits(PectinateTree(7))
match.Splits(splits1, splits2)
# }
Run the code above in your browser using DataLab