Description Usage Arguments Details See Also Examples
View source: R/get-spcl-methods.R
Returns a list of tip IDs for each branch in the tree. Options allow the user to act as if the root is not present and to use a universal code for comparing between trees.
| 1 | 
| tree | 
 | 
| tips | vector of tips IDs to use for bipartitions | 
| root | Include the root for the bipartitions? Default TRUE. | 
| universal | Create a code for comparing between trees | 
Setting root to FALSE will ignore the bipartitions created by
the root. Setting universal to TRUE will return a vector of 0s and 1s,
not a list of tips. These codes will always begin with 1, and will allow for
the comparison of splits between trees as they do not have "chiralty", so to
speak.
| 1 2 3 4 5 6 7 8 | library(treeman)
tree <- randTree(10)
# get all of the tip IDs for each branch in the rooted tree
(getBiprts(tree))
# ignore the root and get bipartitions for unrooted tree
(getBiprts(tree, root = FALSE))
# use the universal code for comparing splits between trees
(getBiprts(tree, root = FALSE, universal = TRUE))
 | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.