spBelongsToTaxon | R Documentation |
Check in WORMS if one species belongs to a taxon.
spBelongsToTaxon(species, taxon_to_match)
taxon_to_match |
Taxon to match. |
specie |
Specie to check. |
Uses WORMS api to identify the species taxon.
If the species is a generic spp, the " spp" is removed in order to find a match in WORMS.
Require jsonlite library.
TRUE if the species belong to taxon. False if doesn't. In case any species doesn't exists in WORMS a warning is thrown and the text "this species doesn't match in WORMS" is returned. In case multiple matches, a warning is thrown and the text "multiple match in WORMS" is returned.
Marco A. Ámez , marco.amez@ieo.es
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.