spBelongsToTaxon: Check in WORMS if one species belongs to a taxon.

spBelongsToTaxonR Documentation

Check in WORMS if one species belongs to a taxon.

Description

Check in WORMS if one species belongs to a taxon.

Usage

spBelongsToTaxon(species, taxon_to_match)

Arguments

taxon_to_match

Taxon to match.

specie

Specie to check.

Details

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.

Value

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.

Author(s)

Marco A. Ámez , marco.amez@ieo.es


Eucrow/sapmuebase documentation built on April 17, 2024, 10:29 a.m.