Learn R Programming

spidR (version 1.0.2)

checknames: Check taxa names in WSC.

Description

Check taxa names against the World Spider Catalogue.

Usage

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.

Value

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

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).

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

Run this code
# NOT RUN {
tax = c("Nemesis", "Nemesia brauni", "Iberesia machadoi", "Nemesia bacelari")
checknames(tax)
checknames(tax, full = TRUE, order = TRUE)
# }

Run the code above in your browser using DataLab