extract_taxo: Extract a subset of the taxonomy for a set of ids

View source: R/taxo.R

extract_taxoR Documentation

Extract a subset of the taxonomy for a set of ids

Description

Extract a subset of the taxonomy for a set of ids

Usage

extract_taxo(db, taxon_ids, recursive = TRUE)

Arguments

db

a connection to an EcoTaxa database (from db_connect_ecotaxa()).

taxon_ids

internal, numeric ids of the taxa.

recursive

when TRUE, extract the full taxonomy, until the root.

See Also

Other taxonomy-related functions: ancestors(), as.taxo(), children(), descendants(), is_leaf(), lineage(), parent(), taxo_id(), taxo_name()

Examples

db <- db_connect_ecotaxa()
extract_taxo(db, 84000:84003)
extract_taxo(db, 84000:84003, recursive=FALSE)

jiho/ecotaxar documentation built on Jan. 16, 2024, 12:26 a.m.