species: Extract the species name

Description Usage Arguments Details Value Author(s) See Also Examples

Description

Extracts the species name from a scientific name

Usage

1
species(x, abbrev=FALSE, epithet=FALSE)

Arguments

x

A vector of scientific names

abbrev

Abbreviate the genus name

epithet

Return only the specific epithet (default is genus + specific epithat)

Details

Returns the species name. For candidate species labeled Candidatus, the qualifier is not included

Value

A vector of species names

Author(s)

Chris Stubben

See Also

genus

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
species("Bacillus anthracis Ames")
species("Bacillus anthracis Ames", abbrev=TRUE)
species("Bacillus anthracis Ames", epithet=TRUE)
data(proks)
x <- table2(species(proks$name))[1:10,]
dotchart(rev(x), xlab="Genomes", pch=16)
## abbreviate genus name
x <- subset(proks, name %like% 'Bacillus*')
x <- table2(species(x$name))[1:10, ]
names(x) <- species(names(x), TRUE)
dotchart(rev(x), xlab=expression(italic(Bacillus) ~ genomes), pch=16)

cstubben/genomes2 documentation built on May 14, 2019, 12:25 p.m.