Learn R Programming

Reol (version 1.55)

FirstTwo: Get Binomial Nomenclature

Description

This function strips a taxon name to the first two words. Many times, and EOL species name will come in with additional data (such as the describer, subspecies, variety, etc). This will prune it down to just two names.

Usage

FirstTwo(name)

Arguments

name
any taxonomic unit

Value

Returns a name

Examples

Run this code
	FirstTwo("Galanthus cilicicus Baker")
	FirstTwo("Galanthus peshmenii A.P.Davis & C.D.Brickell")
	FirstTwo("Galanthus")

Run the code above in your browser using DataLab