| match,phylo,phylo-method | R Documentation |
match() returns a vector of the positions of (first) matches of trees in
its first argument in its second.
%in% is a more intuitive interface as a binary operator, which returns
a logical vector indicating whether there is a match or not for each
tree in its left operand.
## S4 method for signature 'phylo,phylo'
match(x, table, nomatch = NA_integer_, incomparables = NULL)
## S4 method for signature 'multiPhylo,phylo'
match(x, table, nomatch = NA_integer_, incomparables = NULL)
## S4 method for signature 'phylo,multiPhylo'
match(x, table, nomatch = NA_integer_, incomparables = NULL)
## S4 method for signature 'multiPhylo,multiPhylo'
match(x, table, nomatch = NA_integer_, incomparables = NULL)
## S4 method for signature 'multiPhylo,multiPhylo'
x %in% table
## S4 method for signature 'multiPhylo,phylo'
x %in% table
## S4 method for signature 'phylo,multiPhylo'
x %in% table
## S4 method for signature 'phylo,phylo'
x %in% table
x, table |
Object of class |
nomatch |
Integer value that will be used in place of |
incomparables |
Ignored. (Included for consistency with generic.) |
match() returns an integer vector specifying the position in
table that matches each element in x, or nomatch if no match is found.
Corresponding base functions are documented in
match().
Other utility functions:
ClusterTable,
ClusterTable-methods,
Hamming(),
MSTEdges(),
SampleOne(),
TipTimedTree(),
UnshiftTree(),
as.multiPhylo(),
sapply64(),
sort.multiPhylo()
tree1 <- BalancedTree(7)
trees <- c(PectinateTree(7), BalancedTree(7))
match(tree1, trees)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.