Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

tp_search

Search Tropicos by scientific name, common name, or Tropicos ID.


Description

Search Tropicos by scientific name, common name, or Tropicos ID.

Usage

tp_search(
  sci = NULL,
  com = NULL,
  nameid = NULL,
  orderby = NULL,
  sortorder = NULL,
  pagesize = NULL,
  startrow = NULL,
  type = NULL,
  key = NULL,
  name = NULL,
  commonname = NULL,
  ...
)

Arguments

sci

A scientific name, e.g., "poa annua". See Details.

com

A common name, e.g., "annual blue grass"

nameid

Your search string. e.g., "25509881"

orderby

Your search string. e.g., "1"

sortorder

Your search string. e.g., "ascending"

pagesize

Your search string. e.g., "100"

startrow

Your search string. e.g., "1"

type

Type of search, "wildcard" (default) will add a wildcard to the end of your search string. "exact" will use your search string exactly.

key

Your Tropicos API key; See taxize-authentication for help on authentication

name

Deprecated, see sci

commonname

Deprecated, see com

...

Further args passed on to crul::HttpClient

Details

More details on the name parameter: Tropicos will fail if you include a period (.) in your name string, e.g., var., so we replace periods before the request is made to the Tropicos web service. In addition, Tropicos for some reason doesn't want to see sub-specific rank names like var/subsp, so remove those from your query.

Value

List or dataframe.

References

http://services.tropicos.org/help?method=SearchNameXml

Examples

## Not run: 
tp_search(sci = 'Poa annua')
tp_search(sci = 'Poa annua subsp. annua')
tp_search(sci = 'Poa annua var. annua')
tp_search(sci = 'Poa annua var annua')
tp_search(sci = 'Poa annua annua')

## End(Not run)

taxize

Taxonomic Information from Around the Web

v0.9.100
MIT + file LICENSE
Authors
Scott Chamberlain [aut] (<https://orcid.org/0000-0003-1444-9135>), Eduard Szoecs [aut], Zachary Foster [aut, cre], Zebulun Arendsee [aut], Carl Boettiger [ctb], Karthik Ram [ctb], Ignasi Bartomeus [ctb], John Baumgartner [ctb], James O'Donnell [ctb], Jari Oksanen [ctb], Bastian Greshake Tzovaras [ctb], Philippe Marchand [ctb], Vinh Tran [ctb], Maëlle Salmon [ctb], Gaopeng Li [ctb], Matthias Grenié [ctb], rOpenSci [fnd] (https://ropensci.org/)
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.