Learn R Programming

ggphylo (version 0.1)

tree.set.tag: Sets the tag for a given node to the specified value. Returns the same tree structure with the new tag in place.

Description

Sets the tag for a given node to the specified value. Returns the same tree structure with the new tag in place.

Usage

tree.set.tag(phylo, node, tag, value)

Arguments

phylo
input phylo object
node
integer, the index of the node whose tag will be set
tag
string, the tag to set
value
string, the value to set

Value

phylo, the phylo object with the new tag

Examples

Run this code
tree <- tree.read('((a,b),c)d;')
tree.set.tag(tree, tree.find(tree, 'b'), 'foo', 'bar')

Run the code above in your browser using DataLab