tree.ages.spp function

Automatically build matrix for time-calibration of phylogenetic trees using occurrence data.

Automatically build matrix for time-calibration of phylogenetic trees using occurrence data.

tree.ages.spp(phylo0, data)

Arguments

  • phylo0: Either an object of class phylo, or a character vector containing taxon names for building the matrix
  • data: A higher-level taxon name to get data for in the paleobiology database, or a data.frame containing a species table containing entries for the taxa in question.

Returns

A two-column matrix containing earliest and latest occurrences for each taxon in taxa, with taxon names as row names

Details

tree.ages looks for the taxon names in the tna column of a taxon-range table (as produced by mk.sptab()), so it will only recover ages for taxa that can be found there. For a function optimized for higher-level taxa that might not be represented in such a table, see tree.ages(). It is highly recommended to manually inspect the resulting table for accuracy.

Examples

data(archosauria) data(tree_archosauria) tree.ages.spp(tree_archosauria,data=archosauria$sptab_Ornithopoda)->ages
  • Maintainer: Darius Nau
  • License: GPL (>= 3)
  • Last published: 2025-03-23

Useful links