Learn R Programming

faunabr (version 1.0.0)

extract_binomial: Extract the binomial name (Genus + specific epithet) from a Scientific Name

Description

Extract the binomial name (Genus + specific epithet) from a Scientific Name

Usage

extract_binomial(species_names)

Value

A vector with the binomial names (Genus + specific epithet).

Arguments

species_names

(character) Scientific names to be converted to binomial names

Examples

Run this code
spp <- c("Panthera onca (Linnaeus, 1758)",
"Zonotrichia capensis subtorquata Swainson, 1837",
"Paraganaspis egeria Díaz & Gallardo, 1996",
"Arrenurus tumulosus intercursor")
spp_new <- extract_binomial(species_names = spp)
spp_new

Run the code above in your browser using DataLab