synonymize: Combine selected entries in a taxon-range table to remove duplicates
Description
Combine selected entries in a taxon-range table to remove duplicates
Usage
synonymize(x, table = NULL, ids = table$tna, max = table$max, min = table$min)
Value
A data.frame containing taxon names, maximum, minimum and mean ages, with ranges for the selected entries merged and superfluous entries removed (note that the first taxon indicated by x is kept as valid).
Arguments
x
Indices or values (taxon names) to combine
table
Taxon-range table
ids
Vector or column of taxon names (used for matching taxon names in x). Defaults to table$tna
max
Vector or column containing maximum ages
min
Vector or column containing minimum ages
Details
This function is meant as an aid to manually editing species tables and remove synonyms or incorrect spellings of taxonomic name that result in an inflated number of distinct taxa being represented.