https://github.com/sckott/rfna
Web page scraping for eFloras, including the Flora of North America
https://github.com/sckott/rfna
efloras flora floras north-america r r-package rstats
Last synced: about 1 year ago
JSON representation
Web page scraping for eFloras, including the Flora of North America
- Host: GitHub
- URL: https://github.com/sckott/rfna
- Owner: sckott
- License: other
- Created: 2011-12-12T16:53:32.000Z (over 14 years ago)
- Default Branch: master
- Last Pushed: 2020-09-17T16:39:11.000Z (almost 6 years ago)
- Last Synced: 2025-04-18T18:29:25.363Z (about 1 year ago)
- Topics: efloras, flora, floras, north-america, r, r-package, rstats
- Language: R
- Homepage: https://sckott.github.io/rfna
- Size: 58.6 KB
- Stars: 6
- Watchers: 5
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.Rmd
- License: LICENSE
Awesome Lists containing this project
README
rfna
====
```{r echo=FALSE}
knitr::opts_chunk$set(
comment = "#>",
collapse = TRUE
)
```
[](https://travis-ci.org/sckott/rfna) [](https://www.repostatus.org/#wip)
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:
## Installation
Install `rfna`
```{r eval=FALSE}
remotes::install_github("sckott/rfna")
```
```{r}
library('rfna')
```
## Usage
Get families
```{r}
res <- get_families("fna")
res$names[1:10]
```
Get genera
```{r}
res <- get_genera(from='fna', family='Asteraceae')
res$names[1:10]
```
Parse a page
```{r}
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.
```{r}
url <- 'http://www.efloras.org/florataxon.aspx?flora_id=1&taxon_id=102552'
receptacle(url)
```
## Meta
* Please [report any issues or bugs](https://github.com/sckott/rfna/issues)
* License: MIT
* Get citation information for `rfna` in R doing `citation(package = 'rfna')`