url_get_scientific_names: Function to pull scientific names from web pages

View source: R/findscientificnames.R

url_get_scientific_namesR Documentation

Function to pull scientific names from web pages

Description

Function to pull scientific names from web pages

Usage

url_get_scientific_names(URL, search_engine = 0, above_species = FALSE)

Arguments

URL

The URL to extract names from. Can be a pdf url.

search_engine

1 to use TaxonFinder, 2 to use NetiNeti, 0 to use both

above_species

Boolean. Default to FALSE. If TRUE it will only return scientific names above the species level.

Value

A vector of scientific names. It returns unique matches.

See Also

https://github.com/phylotastic/phylo_services_docs/tree/master/ServiceDescription

Examples

# get scientific names from a wikipedia web page:
url_get_scientific_names(URL = "https://en.wikipedia.org/wiki/Plain_pigeon")
# get scientific names from a pdf URL:
url_get_scientific_names(URL =
 "http://darwin-online.org.uk/converted/pdf/1897_Insectivorous_F1229.pdf")

phylotastic/rphylotastic documentation built on Aug. 22, 2023, 9:51 p.m.