View source: R/tree_manipulation.R
set_node_names | R Documentation |
In phylostratr, all nodes in a tree need to be named, since the names are used to merge trees.
set_node_names(x, ...)
## S3 method for class 'Strata'
set_node_names(x, ...)
## S3 method for class 'phylo'
set_node_names(x, default_names = paste0("n", nodes(x)), ...)
x |
phylo or Strata object |
... |
Arguments passed to |
default_names |
node names to use if they are missing. Must be a vector with a number of elements equal to the number of nodes in the tree. |
phylo or Strata object
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.