Learn R Programming

phylotools (version 0.1.2)

rh: Generating random time between the oldest node and the latest node

Description

Random time between the oldest node and the latest node. This function only handle the ultrametric tree.

Usage

rh(tree, times = 1)

Arguments

tree
The phylogenetic tree
times
Number of random time values to be generated

Value

A vector representing the time, that randomly generated

References

To be added

Examples

Run this code
data(bird.orders)
rh(bird.orders, 10)

Run the code above in your browser using DataLab