powered by
Return start and end ages for ids from when they first appear to when they split
ids
getSpnsAge(tree, ids, tree_age, parallel = FALSE, progress = "none")
TreeMan object
TreeMan
vector of node ids
numeric value of known age of tree
logical, make parallel?
name of the progress bar to use, see create_progress_bar
create_progress_bar
Returns a dataframe, parallelizable.
getNdAge, getNdsAge, getSpnAge, https://github.com/DomBennett/treeman/wiki/get-methods
getNdAge
getNdsAge
getSpnAge
# NOT RUN { library(treeman) tree <- randTree(10) # all nodes but root ids <- tree['nds'][tree['nds'] != tree['root']] getSpnsAge(tree, ids=ids, tree_age=getAge(tree)) # }
Run the code above in your browser using DataLab