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.