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

Installation

Install rfna

devtools::install_github("ropensci/rfna")
library('rfna')

Usage

Get families

##  [1] "Achatocarpaceae"  "Acoraceae"        "Agavaceae"       
##  [4] "Aizoaceae"        "Alismataceae"     "Aloaceae"        
##  [7] "Amaranthaceae"    "Amblystegiaceae"  "Andreaeaceae"    
## [10] "Andreaeobryaceae"

Get genera

res <- get_genera(from='fna', family='Asteraceae')
res$names[1:10]
##  [1] "Asteraceae"     "Acamptopappus"  "Acanthospermum" "Achillea"      
##  [5] "Achyrachaena"   "Acmella"        "Acourtia"       "Acroptilon"    
##  [9] "Adenocaulon"    "Adenophyllum"

Parse a page

##             name     id
## 1     Asteraceae  10074
## 2  Acamptopappus 100070
## 3 Acanthospermum 100132
## 4       Achillea 100191
## 5   Achyrachaena 100226
## 6        Acmella 100279
##                                                                 url
## 1  http://www.efloras.org/florataxon.aspx?flora_id=1&taxon_id=10074
## 2 http://www.efloras.org/florataxon.aspx?flora_id=1&taxon_id=100070
## 3 http://www.efloras.org/florataxon.aspx?flora_id=1&taxon_id=100132
## 4 http://www.efloras.org/florataxon.aspx?flora_id=1&taxon_id=100191
## 5 http://www.efloras.org/florataxon.aspx?flora_id=1&taxon_id=100226
## 6 http://www.efloras.org/florataxon.aspx?flora_id=1&taxon_id=100279

Get state (paleate or epaleate) of receptacle.

## [1] "Argyranthemum" "epaleate"      "epaleate"

Meta

ropensci