Rfna
Web page scraping for eFloras, including the Flora of North America
Install / Use
/learn @sckott/RfnaREADME
rfna
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
remotes::install_github("sckott/rfna")
library('rfna')
Usage
Get families
res <- get_families("fna")
res$names[1:10]
#> [1] "Achatocarpaceae" "Acoraceae" "Agavaceae" "Aizoaceae"
#> [5] "Alismataceae" "Aloaceae" "Amaranthaceae" "Amblystegiaceae"
#> [9] "Andreaeaceae" "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
pg1<-'http://www.efloras.org/browse.aspx?flora_id=1&start_taxon_id=10074&page=1'
head(parse_page(pg1))
#> 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.
url <- 'http://www.efloras.org/florataxon.aspx?flora_id=1&taxon_id=102552'
receptacle(url)
#> [1] "Argyranthemum" "epaleate" "epaleate"
Meta
- Please report any issues or bugs
- License: MIT
- Get citation information for
rfnain R doingcitation(package = 'rfna')
Related Skills
node-connect
351.4kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
110.7kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
351.4kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
351.4kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
