tree.set.tag: Sets the tag for a given node to the specified value. Returns...

Description Usage Arguments Value Examples

Description

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

Usage

1
  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

1
2
tree <- tree.read('((a,b),c)d;')
tree.set.tag(tree, tree.find(tree, 'b'), 'foo', 'bar')

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