Match spp list to reference list

matcher(spplist, ref, against = NULL)

# S3 method for 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

if (FALSE) { 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") }