strip_names: Strip taxon names

View source: R/strip_names.R

strip_namesR Documentation

Strip taxon names

Description

Strip taxonomic names of taxon rank abbreviations and qualifiers and special characters

Usage

strip_names(taxon_names)

Arguments

taxon_names

A character vector of taxonomic names to be stripped.

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.

Value

A character vector of stripped taxonomic names, with subtaxa designations, special characters, and extra whitespace removed, and all letters converted to lowercase.

Examples

strip_names(c("Abies lasiocarpa subsp. lasiocarpa",
              "Quercus kelloggii",
              "Pinus contorta var. latifolia"))


APCalign documentation built on Sept. 12, 2024, 6:58 a.m.