Strip taxonomic names of taxon rank abbreviations and qualifiers and special characters
Value
A character vector of stripped taxonomic names, with subtaxa designations, special characters, and extra whitespace removed, and all letters converted to lowercase.
Details
Given a vector of taxonomic names, this function removes:
subtaxa designations ("subsp.", "var.", "f.", and "ser")
special characters (e.g., "-", ".", "(", ")", "?")
extra whitespace
The resulting vector of names is also converted to lowercase.
Examples
strip_names(c("Abies lasiocarpa subsp. lasiocarpa",
"Quercus kelloggii",
"Pinus contorta var. latifolia"))
#> [1] "abies lasiocarpa lasiocarpa" "quercus kelloggii"
#> [3] "pinus contorta latifolia"