For each unique worms_id in the species table, retrieves the full
classification from WoRMS (kingdom, phylum, class, order, family,
genus, species) and stores it in a taxon table. Optionally also
fetches ITIS classification.
Usage
build_taxon_table(
con,
species_tbl = "species",
taxon_tbl = "taxon",
include_itis = TRUE,
batch_size = 50
)Details
Also creates a taxa_rank lookup table with rank ordering consistent
with the WoRMS taxonomy hierarchy.
Examples
if (FALSE) { # \dontrun{
con <- get_duckdb_con("calcofi.duckdb")
taxon_rows <- build_taxon_table(con)
} # }