fixCase: Standardize Species Name Casing

fixCaseR Documentation

Standardize Species Name Casing

Description

Capitalize the genus first letter and lowercase the (infra-)specific epiteth of species names.

Usage

fixCase(x)

Arguments

x

the character string or vector to be standardized.

Details

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.

Value

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.

Author(s)

Renato A. F. de Lima

Examples


## 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)


LimaRAF/plantR documentation built on Jan. 1, 2023, 10:18 a.m.