Description Usage Arguments Examples
Exact matcher
1 2 3 4 | match_exact(x, ref = NULL, against = NULL)
## S3 method for class 'character'
match_exact(x, ref = NULL, against = NULL)
|
x |
Input species list, a character vector |
ref |
(character) Reference taxon data.frame, or file path |
against |
(character) What column to match against in data.frame. Ignored if a vector given |
1 2 3 4 5 6 7 8 9 10 | x <- c("Salmo eperlanus Linnaeus, 1758", 'Oncorhynchus clarkii', 'Salmo',
'Oncorhynchus clarkii', 'Salvelinus fontinalis', 'Salvelinus confluentus')
y <- system.file("examples", "worms_salmo.csv", package = "splister")
dat <- unique(read.csv(y, stringsAsFactors = FALSE))
# get exact matches
res <- match_exact(x, ref = dat, against = "scientificName")
# then move on to do fuzzy matching
match_fuzzy(x, dat, against = "scientificName")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.