knitr::opts_chunk$set( comment = "#>", collapse = TRUE )
This set of functions scrapes web content, and allows searches of the content, on the eFloras website, including Flora of North America, etc.
The website: http://www.efloras.org
Install rfna
remotes::install_github("sckott/rfna")
library('rfna')
Get families
res <- get_families("fna") res$names[1:10]
Get genera
res <- get_genera(from='fna', family='Asteraceae') res$names[1:10]
Parse a page
pg1<-'http://www.efloras.org/browse.aspx?flora_id=1&start_taxon_id=10074&page=1' head(parse_page(pg1))
Get state (paleate or epaleate) of receptacle.
url <- 'http://www.efloras.org/florataxon.aspx?flora_id=1&taxon_id=102552' receptacle(url)
rfna
in R doing citation(package = 'rfna')
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.