tree_add_nodelabels: Adds labels to nodes with no asigned label

Description Usage Arguments Value

View source: R/tree_processing.R

Description

Adds labels to nodes with no asigned label

Usage

1
2
tree_add_nodelabels(tree = NULL, node_prefix = "n",
  node_index = "node_number")

Arguments

tree

A tree either as a newick character string or as a phylo object

node_prefix

Character vector. If length 1, it will be used to name all nodes with no labels, followed by a number which can be the node_number or consecutive, as specified in node_number

node_index

Character vector choosing one of "consecutive" or "node_number" as node label index. It will use consecutive numbers from 1 to total node number in the first case and node numbers in the second case.

Value

A phylo object


phylotastic/datelife documentation built on Jan. 14, 2019, 9:56 p.m.