lookup_powo: Look up a taxon in POWO.

View source: R/powo.R

lookup_powoR Documentation

Look up a taxon in POWO.

Description

Request the record for a taxon in Plants of the World Online (POWO) using the IPNI ID.

Usage

lookup_powo(taxonid, distribution = FALSE, .wait = 0.2)

Arguments

taxonid

A string containing a valid IPNI ID.

distribution

Include distribution in results (default FALSE).

.wait

Time to wait before making a request, to help rate limiting.

Details

Plants of the World Online (POWO) is a database of information on the world's flora. It curates information from published floras and other sources of floristic information.

The taxon lookup API allows users to retrieve information about a specific taxon name using the unique IPNI ID. If this is not known, it can be found out using the POWO search API.

Value

A powo_taxon object, which is a simple structure with fields for each of the fields returned by the lookup API, as well as the the httr response object.

See Also

  • search_powo() to search POWO using a taxon name.

Other POWO functions: search_powo()

Examples

# retrieve information for a taxon name
lookup_powo("271445-2")

# print a summary of the returned information
r <- lookup_powo("271445-2")
print(r)

# tidy returned record into a tibble
r <- lookup_powo("271445-2")
tidy(r)

# tidy the returned list of synonyms into a tibble
r <- lookup_wcvp("60447743-2")
tidied <- tidy(r)
tidyr::unnest(tidied, cols=synonyms, names_sep="_")

# tidy the returned list of children into a tibble
r <- lookup_wcvp("30000055-2")
tidied <- tidy(r)
tidyr::unnest(tidied, cols=children, names_sep="_")


barnabywalker/kewr documentation built on July 5, 2022, 5:37 p.m.