tree.age.combine function

Combine two calibration matrixes and fill in NA values in one with values from another

Combine two calibration matrixes and fill in NA values in one with values from another

tree.age.combine(ages0, ages1)

Arguments

  • ages0: First matrix, NA values in which to replace with values from second matrix
  • ages1: matrix from which to take replacement values

Returns

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

Details

tree.age.combine builds the union of two calibration matrices if some of the values in one of them are NAs. If exact matches for some entries cannot be found, a relaxed search matching only the first word (i.e. usually the genus name) in each taxon name is run, in order to fill in as much of the age matrix as possible with non-NA values. 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_A tree.ages.spp(tree_archosauria,data=archosauria$sptab_Allosauroidea)->ages_B tree.age.combine(ages_A,ages_B)->ages
  • Maintainer: Darius Nau
  • License: GPL (>= 3)
  • Last published: 2025-03-23

Useful links