This function matches a list of taxon names against the SLU Artdatabanken API (Dyntaxa) and retrieves the best matches along with their taxon IDs.
Usage
match_taxon_name(
taxon_names,
subscription_key,
multiple_options = FALSE,
searchFields = "Both",
isRecommended = "NotSet",
isOkForObservationSystems = "NotSet",
culture = "sv_SE",
page = 1,
pageSize = 100,
verbose = TRUE
)
Arguments
- taxon_names
A vector of taxon names to match.
- subscription_key
A character string containing the subscription key for accessing the SLU Artdatabanken API. A key is provided for registered users at Artdatabanken.
- multiple_options
Logical. If TRUE, the function will return multiple matching names. Default is FALSE, selecting the first match.
- searchFields
A character string indicating the search fields. Defaults to 'Both'.
- isRecommended
A character string indicating whether the taxon is recommended. Defaults to 'NotSet'.
- isOkForObservationSystems
A character string indicating whether the taxon is suitable for observation systems. Defaults to 'NotSet'.
- culture
A character string indicating the culture. Defaults to 'sv_SE'.
- page
An integer specifying the page number for pagination. Defaults to 1.
- pageSize
An integer specifying the page size for pagination. Defaults to 100.
- verbose
Logical. Print progress bar. Default is TRUE.
Details
Note: Please review the API conditions
and register for access before using the API. Data collected through the API
is stored at SLU Artdatabanken. Please also note that the authors of SHARK4R
are not affiliated with SLU Artdatabanken.