
Match collection to World Checklist of Vascular Plants via taxonomic name
match_collection_to_wcvp.RdMatch collection to World Checklist of Vascular Plants via taxonomic name
Usage
match_collection_to_wcvp(
collection,
wcvp,
taxon_name_column = "TaxonName",
taxon_name_full_column = NA,
taxon_author_column = NA,
typo_method = "All",
do_add_split = TRUE,
do_fix_hybrid = TRUE,
do_rm_autonym = TRUE,
do_convert_accepted = TRUE,
matching_criterion = BGSmartR::additional_wcvp_matching,
...,
enrich_taxon_name_column = "taxon_name",
enrich_taxon_authors_column = "sanitise_author",
enrich_display_in_message_column = "powo_id",
enrich_plant_identifier_column = "plant_name_id"
)Arguments
- collection
A data frame containing a collection.
- wcvp
World Checklist of Vascular Plants (WCVP) database, obtained using the function
import_wcvp_names().- taxon_name_column
The name of the column in the
collectioncorresponding to taxonomic names.- taxon_name_full_column
The name of the column in the
collectioncorresponding to joined taxonomic names and authors.The name of the column in the
collectioncorresponding to the authors of the taxonomic names.- typo_method
Either
'All','Data frame only','Data frame + common', detailing the level of typo finding required.- do_add_split
Flag (TRUE/FALSE) for whether we search for missing f./var./subsp.
- do_fix_hybrid
Flag (TRUE/FALSE) for whether we search for hybrid issues.
- do_rm_autonym
Flag (TRUE/FALSE) for whether we try removing autonyms.
- do_convert_accepted
Flag for whether we convert to accepted names in wcvp
- matching_criterion
A function used to chose the best method from extracts of the
wcvp$wcvp_names.- ...
Arguments (i.e., attributes) used in the matching algorithm (passed along to nested fuctions). Examples include,
enrich_display_in_message_columnandenrich_plant_identifier_column.- enrich_taxon_name_column
The name of the column in the
iucnRedlistcorresponding to taxonomic names.Default value isscientific_name.The name of the column in
enrich_databasethat corresponds to the authors of taxonomic names. Default value istaxon_authors_simp.- enrich_display_in_message_column
The name of the column in
iucnRedlistthat contains values to show in the matching messages. Default value istaxonid.- enrich_plant_identifier_column
The name of the column in
iucnRedlistthat corresponds to record identifier. Default value istaxonid.
Value
A list of length seven containing:
$matchthe index of the record inwcvp$wcvp_nameswhich matches the record in the collection database.$details_shorta simplified message detailing the match.$match_taxon_namea longer format message detailing the match.$original_authorsThe author/s (extracted) from thecollectiondatabase.$match_authorsThe author/s of the matched record inwcvp$wcvp_names.$author_checkEitherIdentical,PartialorDifferent(No Matchif a match to wcvp cannot be found). A message informing the similarity of the collection's taxon authors and the authors found inwcvp$wcvp_names. Author similarity is found using the functionauthor_check().