View source: R/search_vt_smart.R
| search_vt_smart | R Documentation |
Retrieve the IDs for any VecTraits datasets matching the given filter.
search_vt_smart(field, operator, value, basereq = vb_basereq())
field |
a field of VecTraits to search. |
operator |
an operator to use when searching. |
value |
the value that the field might/might not be. |
basereq |
an httr2 request object, as generated by |
An ohvbd.ids vector of VecTraits dataset IDs.
The following field names are valid (shortcut names are listed in brackets):
DatasetID (id)
OriginalTraitName (traitname)
Variables
Interactor1Order (order)
Interactor1Family (family)
Interactor1Genus (genus)
Interactor1Species (species, spp)
Interactor1Stage (stage)
Interactor1Sex (sex)
Interactor2Genus (genus2)
Interactor2Species (species2, spp2)
Citation (cite)
DOI
CuratedByDOI (curateddoi)
SubmittedBy (who)
Tags
The following operators are valid (alternative names are listed in brackets):
contains (contain, has, have)
!contains (!contains, !has, !have, ncontains)
equals (=, ==, equal, eq)
!equals (!=, not, !equal, !eq, neq)
starts (starts with, start with, start, sw)
!starts (not starts with, not start with, !start, nsw)
in (within)
!in (not in, not within, !within, nin)
Francis Windram
search_vt_smart("Interactor1Genus", "equals", "Anopheles")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.