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.