Description Usage Arguments Details Value Examples
View source: R/strip.infraspec.R
Delete infraspecific names and epithets form species names.
1 |
x |
A character string giving taxon names of species rank and below. |
strip.infraspec
tries to guess the separating character used;
both " "
and "_"
are possible, but cannot be mixed as, e.g.,
in "Saxicola torquata_axillaris"
.
A character string giving species names.
1 2 3 4 5 6 7 8 9 10 11 | strip.infraspec(c("Vipera aspis",
"Vipera aspis aspis",
"Vipera aspis atra"))
## separating characters cannot be mixed!
spec <- c("Vipera aspis",
"Vipera_aspis_aspis",
"Vipera_aspis atra")
strip.infraspec(spec)
strip.infraspec(gsub(" ", "_", spec))
strip.infraspec(gsub("_", " ", spec))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.