Learn R Programming

arete (version 0.1)

process_species_names: Process and fix species names

Description

This function standardizes species names and fixes a number of common typos and mistakes that commonly occur due to OCR.

Usage

process_species_names(species, processing = "all", enforce = FALSE)

Value

character. A string with the standardized species name.

Arguments

species

character. String with the name of the species to be processed.

processing

character. One of "trim", "sp nov", "hyphen broken", "abbreviate", "spacing" and "all". By default set to "all", performing every edit.

enforce

boolean. Remove non-conforming entries before returning.

Examples

Run this code
process_species_names("macro - thele calpeiana sp. nov.")

Run the code above in your browser using DataLab