-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathREADME.Rmd
More file actions
64 lines (44 loc) · 1.33 KB
/
Copy pathREADME.Rmd
File metadata and controls
64 lines (44 loc) · 1.33 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
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: <http://www.efloras.org>
## 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')`