match_krs | R Documentation |
Use the Kew Reconciliation Service to match a name against IPNI.
match_krs(query, .wait = 0.2, .retries = 3)
query |
The name to match using the reconciliation service. Use a named list to match parts of a name. |
.wait |
Time to wait before making a request, to help rate limiting. |
.retries |
The max number of times to retry the request to KRS. KRS seems to fail every other request, so adding a small number of retries helps prevent unnecessary failure. |
The Kew Reconciliation Service (KRS) allows name matching against IPNI using an Open Refine reconcilliation API.
Returns an object of class krs_match
that is a simple
structure with slots for:
results
: the query results parsed into a list.
response
: the httr response object.
match_knms()
to use simple matching for a vector of names.
# Match a name. match_krs("Solanum sanchez-vegae") # Match a name using name parts match_krs(list(genus="Solanum", species="sanchez-vegae", author="Knapp")) # Format a returned match as a dataframe match <- match_krs(list(genus="Solanum", species="sanchez-vegae", author="Knapp")) tidy(match)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.