matcher: Match spp list to reference list

Description Usage Arguments Examples

View source: R/matcher.R

Description

Match spp list to reference list

Usage

1
2
3
4
matcher(spplist, ref, against = NULL)

## S3 method for class 'character'
matcher(spplist, ref, against = NULL)

Arguments

spplist

Input species list, a character vector

ref

Reference taxon data.frame, or file path

against

(character) What column to match against in data.frame. Ignored if a vector given

Examples

1
2
3
4
5
6
7
8
## Not run: 
x <- c('Salmo trutta', 'Oncorhynchus clarkii', 'Salmo Linnaeus',
'Oncorhynchus clarkii', 'Salvelinus fontinalis', 'Salvelinus confluentus')
y <- system.file("examples", "worms_salmo.csv", package = "splister")
dat <- unique(read.csv(y, stringsAsFactors = FALSE))
matcher(spplist = x, ref = dat, against = "scientificName")

## End(Not run)

ropenscilabs/splister documentation built on Sept. 22, 2020, 4:46 p.m.