Skip to contents

This function queries the GBIF database to retrieve the accepted scientific name for a given taxa based on its GBIF ID. It uses the rgbif package to perform the query.

Usage

GetAcceptedName(ID)

Arguments

ID

numeric or integer; the GBIF ID of the taxa for which the accepted name is being queried.

Value

A character string representing the scientific name of the accepted taxa. If the ID is valid and found in the GBIF database, the scientific name is returned. If the ID is NA, the function returns NA_character_.

Details

Get accepted name of a taxa

Author

Ahmed El-Gabbas

Examples

GetAcceptedName(5372559) # https://www.gbif.org/species/5372559
#> [1] "Salix exigua Nutt."