-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathREADME.Rmd
57 lines (44 loc) · 1.6 KB
/
README.Rmd
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
splister
========
```{r echo=FALSE}
knitr::opts_chunk$set(
warning = FALSE,
message = FALSE,
collapse = TRUE,
comment = "#>"
)
```
[](https://travis-ci.org/sckott/splister)
`splister` matches taxa against a references list
The package API:
* `match_exact`: Exact match of each name
* `match_fuzzy`: Fuzzy match of each name
* `pull_names`: yank out names into character vector
* `case_names`: change case
* `xxx`: asdf
## Installation
```{r install_dev, eval=FALSE}
devtools::install_github("sckott/splister")
```
```{r load}
library('splister')
```
## Examples
```{r eval=FALSE}
x <- read.csv(system.file("examples", "iucn_dat.csv", package = "splister"), stringsAsFactors = FALSE)[,-1]
y <- system.file("examples", "worms_sample.csv", package = "splister")
spp <- x$sciname[1:20000L]
res <- matcher(spplist = spp, ref = y, against = "scientificName")
df <- data.frame(original = spp, taxon = unlist(res),
match = sapply(res, attr, "match"))
df[df$match == "replace", ]
#> original taxon match
#> 2080 Alburnus mento Alburnus mentoides replace
#> 7080 Bahaba chaptis Alburnus mentoides replace
#> 12080 Caridina evae Alburnus mentoides replace
#> 17080 Copadichromis inornatus Alburnus mentoides replace
```
## Meta
* Please [report any issues or bugs](https://github.com/sckott/splister/issues).
* License: MIT
* Please note that this project is released with a [Contributor Code of Conduct](CONDUCT.md). By participating in this project you agree to abide by its terms.