getSpnsAge | R Documentation |
Return start and end ages for ids
from
when they first appear to when they split
getSpnsAge(tree, ids, tree_age, parallel = FALSE, progress = "none")
tree |
|
ids |
vector of node ids |
tree_age |
numeric value of known age of tree |
parallel |
logical, make parallel? |
progress |
name of the progress bar to use, see |
Returns a dataframe, parallelizable.
getNdAge
,
getNdsAge
,
getSpnAge
,
https://github.com/DomBennett/treeman/wiki/get-methods
tree <- randTree(10)
# all nodes but root
ids <- tree["nds"][tree["nds"] != tree["root"]]
getSpnsAge(tree, ids = ids, tree_age = getAge(tree))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.