cleansp {divDyn} | R Documentation |
Cleanse Species Name Vector
Description
This function will take a vector of binomial names with various qualifiers of open nomenclatures, and removes them form the vector entries. Only the the genus and species names will remain.
Usage
cleansp(
x,
debug = FALSE,
collapse = "_",
subgenera = TRUE,
misspells = TRUE,
stems = TRUE
)
Arguments
x |
|
debug |
|
collapse |
|
subgenera |
|
misspells |
|
stems |
|
Details
This version will keep subgenera, and will not assign species to the base genus. The following qualifiers will be omitted: "n.", "sp.", "?", "gen.", "aff.", "cf.", "ex gr.", "subgen.", "spp" and informal species designated with letters. Entries with "informal" and "indet." in them will also be invalidated.
Value
A data.frame or character vector.
Author(s)
Adam T. Kocsis, Gwenn Antell. Adam T. Kocsis wrote the main body of the function, subroutines called by the misspells
and stems
are the modified work of Gwen Antell.
Examples
examp <- c("Genus cf. species", "Genus spp.", "Family indet.",
"Mygenus yourspecies", "Okgenus ? questionsp",
"Genus (cf. Subgenus) aff. species")
cleansp(examp)