get_species_tsn: Return a species' TSN from its ECOS page

Description Usage Arguments Details Examples

Description

Return a species' TSN from its ECOS page

Usage

1

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

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

## End(Not run)

jacob-ogre/ecosscraper documentation built on May 18, 2019, 8 a.m.