myco_search | R Documentation |
Search Mycobank
myco_search(layout = "mbwservice", filter = "", limit = 100, ...)
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 |
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
A list of length two, with slots for data and links, in which NROW(data) should equal length(links).
http://www.mycobank.org/Services/Generic/Help.aspx?s=searchservice
## 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.