powered by
Return start and end ages for id from when it first appears to when it splits
id
getSpnAge(tree, id, tree_age)
TreeMan object
TreeMan
node id
numeric value of known age of tree
Returns a dataframe.
getNdAge, getNdsAge, getSpnsAge, https://github.com/DomBennett/treeman/wiki/get-methods
getNdAge
getNdsAge
getSpnsAge
# NOT RUN { library(treeman) data(mammals) # mammal_age <- getAge(mammals) # ~166.2, needs to be performed when tree is not up-to-date getSpnAge(mammals, id='Homo_sapiens', tree_age=166.2) # }
Run the code above in your browser using DataLab