View source: R/search_vd_smart.R
| search_vd_smart | R Documentation |
Retrieve the IDs for any VecDyn datasets matching the given filter.
search_vd_smart(field, operator, value, basereq = vb_basereq())
field |
a field of VecDyn 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 VecDyn dataset IDs.
The following field names are valid (shortcut names are listed in brackets):
SpeciesName (species)
Title
Collections
Years (yrs)
CollectionMethods (methods)
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)
greater (greater than, gt, >)
less (less than, lt, <)
Francis Windram
search_vd_smart("Collections", "gt", "1000")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.