get_common_name {iucnr} | R Documentation |
Retrieve Vernacular Names for a Given Species
Description
This function retrieves vernacular (common) names for a given species using IUCN data.
It filters vernacular names based on matching internal_taxon_id
and merges
them with species metadata.
Usage
get_common_name(splist)
Arguments
splist |
A character vector containing the scientific names of species for which vernacular names are to be retrieved. |
Details
The function retrieves IUCN data for the input species, extracts the corresponding core_id
, filters the vernacular name dataset using the core_id
, and concatenates all unique vernacular names for each species.
Value
A data.table
or data.frame
with columns:
- submitted_name
The scientific name of the species as submitted.
- vernacular_names
A character string that contains the concatenated vernacular names for each species, separated by " - ".
Examples
species <- c("Panthera uncia", "Cedrela odorata")
result <- get_common_name(splist = species)
print(result)
[Package iucnr version 0.0.0.1 Index]