Returns the species code for a given scientific name. Uses an internally-stored version of the taxonomy. Also provides a message with the common name, scientific name, and species code of the species.

species_code(sciname = NULL)

Arguments

sciname

(required) Character string of length 1 with the scientific name to look for. Case insensitive.

Value

A character string with the eBird species code.

References

http://ebird.org/

Examples

species_code("Anhinga anhinga")
#> Anhinga (Anhinga anhinga): anhing
#> [1] "anhing"