date_with_pbdb {OpenTreeChronograms} | R Documentation |
Date with Paleobiology Database and paleotree.
Description
This will take a topology, look up information about fossils for taxa on the tree, and use paleotree::timePaleoPhy()
to compute branch lengths.
Usage
date_with_pbdb(phy, recent = FALSE, assume_recent_if_missing = TRUE)
Arguments
phy |
A |
recent |
If |
assume_recent_if_missing |
If |
Value
A dated tree.
Examples
taxa <- c(
"Archaeopteryx", "Pinus", "Quetzalcoatlus", "Homo sapiens",
"Tyrannosaurus rex", "Megatheriidae", "Metasequoia", "Aedes", "Panthera"
)
phy <- tree_from_taxonomy(taxa, sources = "The Paleobiology Database")$phy
# end donttest
[Package OpenTreeChronograms version 2022.1.28 Index]