sci2comm_s: Get common names from scientific names.

View source: R/sci2comm_s.R

sci2comm_sR Documentation

Get common names from scientific names.

Description

Get common names from scientific names.

Usage

sci2comm_s(...)

## Default S3 method:
sci2comm_s(scinames, db = "worms", simplify = TRUE, ...)

## S3 method for class 'wormsid'
sci2comm_s(id, simplify = TRUE, ...)

Arguments

...

Further arguments passed on to functions get_wormsid.

scinames

character; One or more scientific names or partial names.

db

character; Data source, only "worms" for now

simplify

(logical) If TRUE, simplify output to a vector of names. If FALSE, return variable formats from different sources, usually a data.frame.

id

character; identifiers, as returned by get_wormsid.

Value

List of character - vectors.

Author(s)

Scott Chamberlain (myrmecocystus@gmail.com)

Examples

## Not run: 
sci2comm_s(scinames='Squatina squatina', db='worms')

# Passing id in, works for sources: itis and ncbi
sci2comm_s(get_wormsid('Squatina squatina'))

# Don't simplify returned
# library("taxize")
# sci2comm_s(get_tsn('Helianthus annuus'), simplify=FALSE)

## End(Not run)

ropensci/taxizesoap documentation built on May 18, 2022, 7:33 p.m.