Retrieve the IDs for any VecTraits datasets matching the given keywords.
Arguments
- keywords
either a string of search terms separated by spaces, or a vector of keywords.
- basereq
an httr2 request object, as generated by
vb_basereq(). IfNA, uses the default request.
Warning
The ids returned from the server (and thus this function) do not necessarily precisely match the keywords that were requested.
For example search_vt("United Kingdom") does not return only items found in the United Kingdom. Instead it returns items where some part of the string "United Kingdom" appears in one of the indexed columns.
The indexed columns of VecTraits are:
DatasetIDOriginalTraitNameVariablesInteractor1OrderInteractor1FamilyInteractor1GenusInteractor1SpeciesInteractor1StageInteractor1SexInteractor2GenusInteractor2SpeciesCitationDOICuratedByDOISubmittedBy
Examples
if (FALSE) { # interactive()
search_vt("Aedes aegypti")
search_vt(c("Aedes", "aegypti"))
}