genus: Extract the genus name

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

View source: R/genus.R

Description

Extracts the genus name from a scientific name (latin binomial)

Usage

1
genus(x)

Arguments

x

A vector of scientific names

Details

Returns the first word in the scientific name. For candidate species labeled Candidatus, then the second word is returned.

Value

A vector of genus names

Author(s)

Chris Stubben

See Also

species

Examples

1
2
3
4
genus("Bacillus anthracis Ames")
data(proks)
x <- table2(genus(proks$name))[1:10,]
dotchart(rev(x), xlab="Genomes", pch=16)

cstubben/genomes2 documentation built on May 12, 2017, 1:19 p.m.