
Add WoRMS taxonomy hierarchy to AphiaIDs or scientific names
Source:R/worms_api_functions.R
add_worms_taxonomy.RdThis function enhances a dataset of AphiaIDs (and optionally scientific names) with their complete hierarchical taxonomy from the World Register of Marine Species (WoRMS). Missing AphiaIDs can be resolved from scientific names automatically.
Usage
add_worms_taxonomy(
aphia_ids,
scientific_names = NULL,
add_rank_to_hierarchy = FALSE,
verbose = TRUE,
aphia_id = deprecated(),
scientific_name = deprecated()
)Arguments
- aphia_ids
Numeric vector of AphiaIDs.
- scientific_names
Optional character vector of scientific names (same length as
aphia_id).- add_rank_to_hierarchy
Logical (default FALSE). If TRUE, includes rank labels in the concatenated hierarchy string.
- verbose
Logical (default TRUE). If TRUE, prints progress updates.
- aphia_id
- scientific_name