tree.node.with.label: Returns the index of the node with a given label.

Description Usage Arguments Value

Description

Returns the index of the node with a given label.

Usage

1
  tree.node.with.label(phylo, label, return.one = FALSE)

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.


gjuggler/ggphylo documentation built on May 17, 2019, 6:05 a.m.