extend_genus_names: Expands abbreviated genus names

Description Usage Arguments Details Value Author(s) Examples

View source: R/extend_genus_names.r

Description

The function takes a strings of species names of the form Bufo bufo, B. bufo, and writes Bufo bufo, Bufo bufo.

Usage

1
extend_genus_names(species_vector_by_group)

Arguments

species_vector_by_group

a character vector containing complete and abbreviated genus names.

Details

The function only analyses texts, there is no call to a known species list. When encontering an abbreviated genus name, the function replaces it with the last known complete name beginning with the same letter.

Value

A character vector of species or genus names whom genus name has been expanded.

Author(s)

Alban Sagouis

Examples

1
extend_genus_names(c("Bufo bufo", "B. bufo", "Buteo buteo", "B. buteo", "G. gulo", NA))

AlbanSagouis/iClean documentation built on May 14, 2020, 9:06 p.m.