Search Tropicos by scientific name, common name, or Tropicos ID.
tp_search(
sci = NULL,
com = NULL,
nameid = NULL,
orderby = NULL,
sortorder = NULL,
pagesize = NULL,
startrow = NULL,
type = NULL,
key = NULL,
name = NULL,
commonname = NULL,
...
)
A scientific name, e.g., "poa annua". See Details.
A common name, e.g., "annual blue grass"
Your search string. e.g., "25509881"
Your search string. e.g., "1"
Your search string. e.g., "ascending"
Your search string. e.g., "100"
Your search string. e.g., "1"
Type of search, "wildcard" (default) will add a wildcard to the end of your search string. "exact" will use your search string exactly.
Your Tropicos API key; See taxize-authentication for help on authentication
Deprecated, see sci
Deprecated, see com
Further args passed on to crul::HttpClient
List or dataframe.
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.
http://services.tropicos.org/help?method=SearchNameXml
if (FALSE) {
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')
}