Learn R Programming

ggphylo (version 0.1)

tree.get.tags: Retrieves a list of all tags for the given node.

Description

Retrieves a list of all tags for the given node.

Usage

tree.get.tags(phylo, node)

Arguments

phylo
input phylo object
node
the node index for the desired tags

Value

list containing all tags associated with this node, if tags exist; empty list otherwise.

Examples

Run this code
tree <- tree.read('((a,b[&&NHX:foo=bar]),c);')
tree.get.tags(tree, tree.node.with.label(tree, 'b')) # foo => bar

Run the code above in your browser using DataLab