getSpnAge: Get age range

View source: R/a.R

getSpnAgeR Documentation

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


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)

ropensci/phylotaR documentation built on July 9, 2023, 3:17 p.m.