Find the placed basionym of each unplaced backbone record
Source:R/basionym.R
basionym_placement.RdThe one definition of when a basionym places a record, shared by the
matching engine and taxifydb's name-lookup build. A record qualifies when the
backbone keeps it unplaced (the status grade of .status_unplaced) and its
original_name_usage_id names another record that the backbone places:
accepted, or a plain synonym, with an accepted taxon other than the record
itself. A basionym that is itself unplaced, misapplied or absent settles
nothing.
Value
Integer vector along records: the row of basionyms whose accepted
taxon the record belongs to, or NA.
See also
Other Low-level building blocks:
candidate_order(),
embed_accepted(),
enrichment_authorship_col(),
is_aggregate_name(),
normalize_aggregate_name(),
normalize_epithets(),
precompute_keys(),
score_candidates()
Examples
records <- data.frame(taxon_id = "2", taxonomic_status = "UNPLACED",
original_name_usage_id = "1", is_synonym = FALSE)
basionyms <- data.frame(taxon_id = "1", taxonomic_status = "ACCEPTED",
accepted_taxon_id = "1", is_synonym = FALSE)
basionym_placement(records, basionyms)
#> [1] 1