match_names: Search Matchings between Character and taxlist Objects

Description Usage Arguments Details Author(s) See Also Examples

Description

Names provided in a character vector will be compared with names stored in slot 'taxonNames' within an object of class taxlist by using the function stringsim.

Usage

1
2
3
## S4 method for signature 'character,taxlist'
match_names(x, object, clean=TRUE,
	output="data.frame", best=5, show_concepts=FALSE, method="lcs", ...)

Arguments

x

A character vector with names to be compared.

object

An object of class taxlist to be compared with.

clean

Logical value, whether leading, tailing and double blanks should be deleted from 'x'.

output

Character value indicating the type of output (see details).

best

Integer value indicating how many from the best matches have to be displayed (only working for output="list").

show_concepts

Logical value, whether respective concepts should be displayed in output or not.

method,...

Further arguments passed to stringsim.

Details

For output="list" a list with the best matches (taxon usage name ID and similarity) for each queried name will be retrieved, where the number is set by argument 'best'.

Author(s)

Miguel Alvarez, [email protected].

See Also

stringsim.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
library(taxlist)
data(Easplist)

## Names to be compared
species <- c("Cperus papyrus", "Typha australis", "Luke skywalker")

## Retrieve taxon usage names
match_names(species, Easplist)

## Display accepted names in output
match_names(species, Easplist, show_concepts=TRUE)

taxlist documentation built on July 2, 2018, 1:03 a.m.