get_lineage: Retrieve the full taxonomic lineage of a taxon by name

View source: R/fetch.R

get_lineageR Documentation

Retrieve the full taxonomic lineage of a taxon by name

Description

A convenience wrapper that combines get_taxonomicon_id() and get_lineage_by_id() into a single call. Given a taxon name, returns its complete lineage from root to tip.

Usage

get_lineage(taxon, clean = TRUE, verbose = FALSE)

Arguments

taxon

A character string giving the taxon name.

clean

Logical. If TRUE (default), removes philosophical root nodes and cleans formatting markers.

verbose

Logical. If TRUE, prints progress messages. Default FALSE.

Value

A character vector of clade names ordered from root to tip, or NULL if the taxon cannot be found.

Examples


get_lineage("Tyrannosaurus")
get_lineage("Homo sapiens")
get_lineage("Quercus robur")


taxodist documentation built on May 6, 2026, 1:06 a.m.