fixCase | R Documentation |
Capitalize the genus first letter and lowercase the (infra-)specific epiteth of species names.
fixCase(x)
x |
the character string or vector to be standardized. |
The function try to fix some common upper/lowercase issues in
species names, taking into account the possible presence of name authorities,
as an alternative to the function fixCase()
from the package flora
.
It works for names at any taxonomic level (e.g. genus, species and infra-specific) and it handle well most common combinations of species names and their authorities. However, the function has not been tested for a wide range of possibilities, so some level of double-checking may be necessary.
the character string equal to x
with the first letter of the
genus capitalized and the first letter of the (infra-)specific epiteth in
lowercase.
Renato A. F. de Lima
## Not run: nomes <- c("Lindsaea lancea", "lindsaea lancea", "lindsaea Lancea", "Lindsaea Lancea", "LINDSAEA LANCEA", "Lindsaea lancea var. Angulata", "Lindsaea lancea (L.) Bedd.", "Lindsaea Lancea (L.) Bedd.", "lindsaea lancea (L.) Bedd.", "Lindsaea", "Lindsaea Dryand. ex Sm.", "LINDSAEA", "LINDSAEA Dryand. ex Sm.", "LINDSAEA LANCEA (L.) Bedd.", "Lindsaea lancea var. angulata Rosenst.", "Lindsaea lancea angulata Rosenst.", "LINDSAEA LANCEA ANGULATA Rosenst.", "Blechnum antillanum Proctor", "Blechnum occidentale leopoldense Dutra", "Blechnum occidentale var. leopoldense Dutra", "Cf. Australe") fixCase(nomes) ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.