cleansp | R Documentation |
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.
cleansp(
x,
debug = FALSE,
collapse = "_",
subgenera = TRUE,
misspells = TRUE,
stems = TRUE
)
x |
|
debug |
|
collapse |
|
subgenera |
|
misspells |
|
stems |
|
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.
A data.frame or character vector.
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.
examp <- c("Genus cf. species", "Genus spp.", "Family indet.",
"Mygenus yourspecies", "Okgenus ? questionsp",
"Genus (cf. Subgenus) aff. species")
cleansp(examp)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.