taxa_common_to_scientific: Convert common names to scientific names.

View source: R/resolvescientificnames.R

taxa_common_to_scientificR Documentation

Convert common names to scientific names.

Description

Convert common names to scientific names.

Usage

taxa_common_to_scientific(taxa, service = "NCBI", multiple = FALSE)

Arguments

taxa

A character vector of common names. Binomials can be spaced with underscore or white space.

service

Which service to use: NCBI, ITIS, or TROPICOS

multiple

If TRUE, then the service will return multiple matches (if available) for each common name in the input list.

Value

A vector of scientific names. Output order may not correspond to input order.

See Also

taxize package for name resolution in general and its sci2comm function.

Examples

taxa <- c("blue_whale", "swordfish", "killer whale")
scientific <- taxa_common_to_scientific(taxa)
print(scientific)

phylotastic/rphylotastic documentation built on Aug. 22, 2023, 9:51 p.m.