Rdocumentation
powered by
Learn R Programming
ggphylo (version 0.1)
tree.find: Returns the index of the node with a given label. Alias for
tree.node.with.label
.
Description
Returns the index of the node with a given label. Alias for
tree.node.with.label
.
Usage
tree.find(...)
Arguments
phylo
input phylo object
label
character, the label to search for in the tree.
return.one
boolean, TRUE if a maximum of one matching node should be returned, FALSE if all matching nodes should be returned. Defaults to TRUE.
Value
integer vector corresponding to the indices of all nodes with the given label. Returns a zero-length vector if no nodes matched.