The ALA has its' own internal taxonomy that is derived from authoritative
sources. atlas_taxonomy
provides a means to query
that taxonomy, returning a tibble
showing all child nodes and which parent
they are derived from.
Arguments
- request
optional
data_request
object: generated by a call togalah_call()
.- identify
data.frame
: generated by a call togalah_identify()
.- filter
data.frame
: generated by a call togalah_filter(rank == "chosen_rank")
. The identity of the clade at which the downwards search should stop.- constrain_ids
string
: Optional string to limit whichtaxon_concept_id
's are returned. This is useful for restricting taxonomy to particular authoritative sources. Default is"biodiversity.org.au"
for Australia (this can be overridded by settingconstrain_ids = NULL
) and NULL otherwise. Powered bygrepl()
meaning it supports regular expressions.
Details
The approach used by this function is recursive, meaning that it
becomes slow for large queries such as
atlas_taxonomy(search_taxa("Plantae"), down_to = galah_down_to(species))
.
Although the inputs to search_taxa
and down_to
are
case-insensitive, node names are always returned in title case.
See also
search_taxa()
to search for an individual taxon;
show_all(ranks)
for valid ranks used to specify the down_to
argument.
Examples
if (FALSE) {
# Get a taxonomic tree of *Chordata* down to the class level
galah_call() |>
galah_identify("chordata") |>
galah_filter(rank == class) |>
atlas_taxonomy()
}