strip_names {APCalign}R Documentation

Strip taxonomic names of subtaxa designations and special characters

Description

Given a vector of taxonomic names, this function removes subtaxa designations ("subsp.", "var.", "f.", and "ser"), special characters (e.g., "-", ".", "(", ")", "?"), and extra whitespace. The resulting vector of names is also converted to lowercase.

Usage

strip_names(taxon_names)

Arguments

taxon_names

A character vector of taxonomic names to be stripped.

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


[Package APCalign version 0.1.3 Index]