myco_search: Search Mycobank

View source: R/myco_search.R

myco_searchR Documentation

Search Mycobank

Description

Search Mycobank

Usage

myco_search(layout = "mbwservice", filter = "", limit = 100, ...)

Arguments

layout

(character) One of 'mbwservice' or 'mycobank'. There is no explanation of what these different layouts are. Help anyone?

filter

(character) A variety of inputs. See Details.

limit

(integer) Number to return. Default: 100

...

Futher args passed onto httr::GET

Details

For the filter p?arameter, use the following syntax: <FieldCode1><Operator>"<Value1>" AND|OR|NOT <FieldCode2><Operator>"<Value2>". Use the special value: $NULL$ to filter on Null values and $EMPTY$ to filter on empty string values. These two special values are not case sensitive.

For mbwservice, the options are

  • Authors_ text, e.g., Authors_ CONTAINS "Value"

  • Epithet_ text, e.g., Epithet_ CONTAINS "Value"

  • MycoBankNr_ numeric, e.g., codeMycoBankNr_="1"

  • Name text, e.g., Name CONTAINS "Value"

  • Year of publication DateTime (YYYYMMDDHHmmss), e.g., NameYear_<"20140826022700"

For mycobank, the options are

  • Authors_ text, e.g., Authors_ CONTAINS "Value"

  • Classification_ text, e.g., Classification_="Value"

  • Epithet_ text, e.g., Epithet_ CONTAINS "Value"

  • MycoBankNr_ numeric, e.g., codeMycoBankNr_="1"

  • Name text, e.g., NAME CONTAINS "Value"

  • NameStatus_ text, e.g., NameStatus_ = "Value"

  • Summary text, e.g., E3787 CONTAINS "Value"

  • Synonymy text, e.g., E4060 CONTAINS "Value"

  • Year of publication DateTime (YYYYMMDDHHmmss), e.g., NameYear_<"20140826022700"

Operator options

  • = Equality

  • < Lower than

  • > Greater than

  • <> Diffirent

  • <= Lower than or equals

  • >= Greater than or equals

  • CONTAINS Contains the specified string

  • STARTSWITH Starts with the specified string

  • ENDSWITH Ends with the specified string

Value

A list of length two, with slots for data and links, in which NROW(data) should equal length(links).

References

http://www.mycobank.org/Services/Generic/Help.aspx?s=searchservice

Examples

## Not run: 
myco_search(filter='MycoBankNr_="344025"')
head(myco_search(filter='MycoBankNr_>"344025"'))
myco_search(filter='Name CONTAINS "Candida boidinii"')
myco_search(filter='Name CONTAINS "Candida"')
myco_search(filter='Name STARTSWITH "Candida"')
myco_search(filter='Name ENDSWITH "Candida"')

# using layout = mycobank
myco_search(layout='mycobank', filter='MycoBankNr_="344025"')
head(myco_search(layout='mycobank', filter='MycoBankNr_>"344025"'))

# Curl debugging
library('httr')
myco_search(filter='MycoBankNr_="344025"', config=verbose())

## End(Not run)

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