Retrieve the IDs for any datasets matching the given search parameters.
Usage
search_hub(
query,
db = c("vt", "vd", "gbif", "px"),
fromdate = NULL,
todate = NULL,
locationpoly = NULL,
exact = FALSE,
withoutpublished = TRUE,
returnlist = FALSE,
simplify = TRUE,
connections = 8
)
Arguments
- query
a search string.
- db
the databases to search.
- fromdate
the date from which to search (ISO format: yyyy-mm-dd).
- todate
the date up to which to search (ISO format: yyyy-mm-dd).
- locationpoly
a polygon or set of polygons in
terra::SpatVector
or WKT MULTIPOLYGON format within which to search.- exact
whether to return exact matches only.
- withoutpublished
whether to return results without a publishing date when filtering by date.
- returnlist
return the raw output list rather than a formatted dataframe.
- simplify
if only a single database was searched, return an
ohvbd.ids
object instead (defaults toTRUE
).- connections
the number of connections to use to parallelise queries.