-
Notifications
You must be signed in to change notification settings - Fork 4
Description
The real problem here is with the various authorities and has a lot to do with my particular use-case, but TCR probably needs a way to deal with it.
I'm running resolve_sci_taxa() using ITIS and GBIF; some data sets specify a lot of sub-species data like hybrids and cultivars. GBIF seems more willing to recognize those than ITIS but also more likely to alter the form of the taxon:
Abies balsamea var phanerolepis -> Abies balsamea phanerolepis
Acer x freemanii -> Acer freemanii
After going through TCR my next step involves matching the approved taxa from taxa_map$taxa_clean to yet another authority's species list. For cases where the third authority doesn't match the taxa_clean version, replace_taxa() does no good because the term in taxa_replacement is going to get reconstrued in taxa_clean or go unrecognized.
The best solution might be a function like replace_taxa() that injects its output parameter into taxa_clean rather than taxa_replacement, with suitable changes to the authority-related fields.