pull_names: Pull out names after matching is done

Description Usage Arguments Value Examples

View source: R/pull_names.R

Description

Pull out names after matching is done

Usage

1
2
3
4
pull_names(x)

## S3 method for class 'splist'
pull_names(x)

Arguments

x

Input species list, a character vector

Value

Characater vector of names, original names for those not matched, and replacment names for those matched

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
## Not run: 
x <- system.file("examples", "iucn_dat.csv", package = "splister")
x <- read.csv(x, stringsAsFactors = FALSE)[,-1]
y <- system.file("examples", "worms_sample.csv", package = "splister")
spp <- x$sciname[1:1000L]
res <- match_exact(spp, ref = y, against = "scientificName")
res2 <- match_fuzzy(res)
pull_names(res2)

## End(Not run)

sckott/splister documentation built on May 26, 2017, 3:49 a.m.