Learn R Programming

bold (version 0.3.0)

bold_tax_name: Search BOLD for taxonomy data by taxonomic name.

Description

Search BOLD for taxonomy data by taxonomic name.

Usage

bold_tax_name(name = NULL, fuzzy = FALSE, response = FALSE, ...)

Arguments

name
(character) One or more scientific names.
fuzzy
(logical) Whether to use fuzzy search or not (default: FALSE).
response
(logical) Note that response is the object that returns from the Curl call, useful for debugging, and getting detailed info on the API call.
...
Further args passed on to httr::GET, main purpose being curl debugging

Details

The dataTypes parameter is not supported in this function. If you want to use that parameter, get an ID from this function and pass it into bold_tax_id, and then use the dataTypes parameter.

References

http://boldsystems.org/index.php/resources/api?type=taxonomy#nameParameters

See Also

bold_tax_id

Examples

Run this code
bold_tax_name(name='Diplura')
bold_tax_name(name='Osmia')
bold_tax_name(name=c('Diplura','Osmia'))
bold_tax_name(name=c("Apis","Puma concolor","Pinus concolor"))
bold_tax_name(name='Diplur', fuzzy=TRUE)
bold_tax_name(name='Osm', fuzzy=TRUE)

## get httr response object only
bold_tax_name(name='Diplura', response=TRUE)
bold_tax_name(name=c('Diplura','Osmia'), response=TRUE)

## Names with no data in BOLD database
bold_tax_name("Nasiaeshna pentacantha")
bold_tax_name(name = "Cordulegaster erronea")
bold_tax_name(name = "Cordulegaster erronea", response=TRUE)

## curl debugging
library('httr')
bold_tax_name(name='Diplura', config=verbose())

Run the code above in your browser using DataLab