parse_page: Get URLs to daughter pages from a single web page, or...

Description Usage Arguments Details Value Examples

View source: R/parse_page.R

Description

Get URLs to daughter pages from a single web page, or multiple pages, on FNA.

Usage

1
parse_page(url, from = "fna", cores, no_cores)

Arguments

url

The URL of the page

from

one of fna or jepson

cores

Use parallel processing in plyr functions (default to FALSE).

no_cores

Number of cores to use in the parallel plyr work.

Details

If you use parallelization with argument cores=TRUE, make sure to install doMC first.

Value

Taxa names and taxon IDs in a data.frame.

Examples

1
2
3
4
5
6
7
8
## Not run: 
pg1<-'http://www.efloras.org/browse.aspx?flora_id=1&start_taxon_id=10074&page=1'
pg2<-'http://www.efloras.org/browse.aspx?flora_id=1&start_taxon_id=10074&page=2'
pg3<-'http://www.efloras.org/browse.aspx?flora_id=1&start_taxon_id=10074&page=3'
parse_page(pg1)
parse_page(list(pg1, pg2, pg3))

## End(Not run)

ropensci/floras documentation built on Sept. 22, 2020, 3:43 p.m.