
Match collection to World Checklist of Vascular Plants via taxonomic name
match_collection_to_wcvp.Rd
Match 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
collection
corresponding to taxonomic names.- taxon_name_full_column
The name of the column in the
collection
corresponding to joined taxonomic names and authors.The name of the column in the
collection
corresponding 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_column
andenrich_plant_identifier_column
.- enrich_taxon_name_column
The name of the column in the
iucnRedlist
corresponding to taxonomic names.Default value isscientific_name
.The name of the column in
enrich_database
that corresponds to the authors of taxonomic names. Default value istaxon_authors_simp
.- enrich_display_in_message_column
The name of the column in
iucnRedlist
that contains values to show in the matching messages. Default value istaxonid
.- enrich_plant_identifier_column
The name of the column in
iucnRedlist
that corresponds to record identifier. Default value istaxonid
.
Value
A list of length seven containing:
$match
the index of the record inwcvp$wcvp_names
which matches the record in the collection database.$details_short
a simplified message detailing the match.$match_taxon_name
a longer format message detailing the match.$original_authors
The author/s (extracted) from thecollection
database.$match_authors
The author/s of the matched record inwcvp$wcvp_names
.$author_check
EitherIdentical
,Partial
orDifferent
(No Match
if 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()
.