Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: 2 months 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 (about 13 years ago)
- Default Branch: master
- Last Pushed: 2020-09-17T16:39:11.000Z (over 4 years ago)
- Last Synced: 2024-10-09T15:47:02.281Z (3 months 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: 6
- 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
)
```[![Build Status](https://travis-ci.org/sckott/rfna.svg?branch=master)](https://travis-ci.org/sckott/rfna) [![Project Status: WIP – Initial development is in progress, but there has not yet been a stable, usable release suitable for the public.](https://www.repostatus.org/badges/latest/wip.svg)](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')`