taxon_index_to_taxon_table: Create a table showing taxon hierarchies from taxon metadata

View source: R/taxa.R

taxon_index_to_taxon_tableR Documentation

Create a table showing taxon hierarchies from taxon metadata

Description

Taxon data is stored as a set of taxa with taxon ids and parent taxon ids. For any given dataset, the metadata includes an index containing this information for all taxa used in data worksheets and all parent taxa required. This internal function takes the taxon index metadata and builds a table including the taxonomic hierarchy for each worksheet taxon. It is used by get_taxa and get_taxon_coverage.

Usage

taxon_index_to_taxon_table(taxon_index)

Arguments

taxon_index

A taxon index list from the dataset metadata,

Details

Note that this function does not discriminate between NCBI and GBIF taxon indices: they are both mapped onto the same table structure. Public calling functions should handle any merging and tidying required for a neat public API.

Value

A data frame adding higher taxon level information for each taxon

See Also

get_taxa


ImperialCollegeLondon/safe_data documentation built on Jan. 27, 2024, 9:51 a.m.