R: Get age range

getSpnAge {treeman} | R 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

    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)

[Package treeman version 1.1.4 Index]