checknames: Check taxa names in WSC.

Description Usage Arguments Details Value References Examples

View source: R/spidR.R

Description

Check taxa names against the World Spider Catalogue.

Usage

1
checknames(tax, full = FALSE, order = FALSE)

Arguments

tax

A taxon name or vector with taxa names.

full

returns the full list of names.

order

Order taxa alphabetically or keep as in tax.

Details

This function will check if all species, genera and family names in tax are updated according to the World Spider Catalogue (2021). If not, it returns a matrix with valid synonym or possible misspellings using fuzzy matching (Levenshtein edit distance).

Value

If any mismatches, a matrix with taxa not found in WSC or, if full = TRUE, the full list of names.

References

World Spider Catalog (2021). World Spider Catalog. Version 22.0. Natural History Museum Bern, online at http://wsc.nmbe.ch. doi: 10.24436/2.

Examples

1
2
3
4
5
6
## Not run: 
tax = c("Nemesis", "Nemesia brauni", "Iberesia machadoi", "Nemesia bacelari")
checknames(tax)
checknames(tax, full = TRUE, order = TRUE)

## End(Not run)

spidR documentation built on Oct. 18, 2021, 9:08 a.m.

Related to checknames in spidR...