Return a species' TSN from its ECOS page

get_species_tsn(url)

Arguments

url
The URL or path to a local HTML file for a species

Details

FWS uses at least four different keys for species, including the TSN that is defined by ITIS (http://itis.gov). The TSN is used for some JSON data queries; this function simplifies extraction.

Examples

## Not run: ------------------------------------ # url <- "https://ecos.fws.gov/ecp0/profile/speciesProfile?spcode=A001" # get_species_tsn(url) ## ---------------------------------------------