Learn R Programming

treeman (version 1.1.4)

getSpnAge: Get age range

Description

Return start and end ages for id from when it first appears to when it splits

Usage

getSpnAge(tree, id, tree_age)

Arguments

tree

TreeMan object

id

node id

tree_age

numeric value of known age of tree

Details

Returns a dataframe.

See Also

getNdAge, getNdsAge, getSpnsAge, https://github.com/DomBennett/treeman/wiki/get-methods

Examples

Run this code
# 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