Learn R Programming

taxize (version 0.2.0)

comm2sci: Get scientific names from common names.

Description

Get scientific names from common names.

Usage

comm2sci(commnames, db = "eol", itisby = "search", simplify = TRUE, ...)

Arguments

commnames
One or more common names or partial names.
db
Data source, one of "eol" (default), "itis", "tropicos" or "ncbi".
itisby
Search for common names across entire names (search, default), at beginning of names (begin), or at end of names (end).
simplify
(logical) If TRUE, simplify output to a vector of names. If FALSE, return variable formats from different sources, usually a data.frame.
...
Further arguments passed on to internal methods.

Value

  • A vector of names.

See Also

searchbycommonname, searchbycommonnamebeginswith, searchbycommonnameendswith, eol_search, tp_search

sci2comm

Examples

Run this code
comm2sci(commnames='black bear')
comm2sci(commnames='black bear', db='itis')
comm2sci(commnames='annual blue grass', db='tropicos')
comm2sci(commnames=c('annual blue grass','tree of heaven'), db='tropicos')
comm2sci(commnames=c('black bear', 'roe deer'))

# Output easily converts to a data.frame with \code{\link[plyr]{ldply}}
library(plyr)
ldply(comm2sci(commnames=c('annual blue grass','tree of heaven'), db='tropicos'))

Run the code above in your browser using DataLab