optimize_match: Optimize match

View source: R/resolve_sci_taxa.R

optimize_matchR Documentation

Optimize match

Description

Optimize the taxon match to an authority based on completeness of returned information. A complete return contains both an authority name and an authority ID for a taxon.

Usage

optimize_match(x, data.sources)

Arguments

x

(character) A character string specifying the taxon.

data.sources

(numeric) A numeric vector of values specifying the authorities to search across. Run ‘view_authorities' to get valid data source options and ID’s.

Value

  • taxa_clean Resolved name for input taxon.

  • rank Rank of the input taxon.

  • authority Best authority match for input taxon.

  • authority_id Corresponding authority ID for the input taxon.

  • score Authority match score for input taxon.


EDIorg/taxonomyCleanr documentation built on April 9, 2023, 2:43 a.m.