Combine selected entries in a taxon-range table to remove duplicates
synonymize(x, table = NULL, ids = table$tna, max = table$max, min = table$min)
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).
Indices or values (taxon names) to combine
Taxon-range table
Vector or column of taxon names (used for matching taxon names in x). Defaults to table$tna
Vector or column containing maximum ages
Vector or column containing minimum ages
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.
data(archosauria)
sp<-archosauria$sptab_Stegosauria
synonymize(c(32,33),sp)->sp
synonymize(grep("stenops",sp$tna),sp)->sp
synonymize(c("Hesperosaurus mjosi","Stegosaurus mjosi"),sp)->sp
Run the code above in your browser using DataLab