getNdsAge: Get ages for multiple nodes

View source: R/a.R

getNdsAgeR Documentation

Get ages for multiple nodes

Description

Return the age for ids.

Usage

getNdsAge(tree, ids, tree_age, parallel = FALSE, progress = "none")

Arguments

tree

TreeMan object

ids

vector of node ids

tree_age

numeric value of known age of tree

parallel

logical, make parallel?

progress

name of the progress bar to use, see create_progress_bar

Details

Returns a vector, parallelizable.

See Also

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

Examples


tree <- randTree(10)
getNdsAge(tree, ids = tree["nds"], tree_age = getAge(tree))

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