lsid2tsn: Gets the TSN corresponding to the LSID, or an empty result if...

View source: R/lsid2tsn.R

lsid2tsnR Documentation

Gets the TSN corresponding to the LSID, or an empty result if there is no match.

Description

Gets the TSN corresponding to the LSID, or an empty result if there is no match.

Usage

lsid2tsn(lsid, wt = "json", raw = FALSE, ...)

Arguments

lsid

(character) lsid for a taxonomic group. Required.

wt

(character) One of "json" or "xml". Required.

raw

(logical) Return raw JSON or XML as character string. Required. Default: FALSE

...

curl options passed on to crul::HttpClient

Examples

## Not run: 
lsid2tsn(lsid="urn:lsid:itis.gov:itis_tsn:28726")
lsid2tsn(lsid="urn:lsid:itis.gov:itis_tsn:28726", wt = "xml")
lsid2tsn("urn:lsid:itis.gov:itis_tsn:0")
lsid2tsn("urn:lsid:itis.gov:itis_tsn:0", wt = "xml")

## End(Not run)

ropensci/ritis documentation built on Sept. 29, 2022, 8:52 p.m.