dvSearch | R Documentation |
Search a Dataverse by keyword(s) in one or more metadata fields.
dvSearch(query, boolean = "AND", dv = getOption('dvn'), browser = FALSE, ...)
query |
Either a list of named search parameters or an unnamed, one-element list containing an appropriately formatted character string of search parameters. Search parameters can be retrieved via |
boolean |
A character string specifying the boolean “AND” (the default) or “OR” by which multiple values in the |
dv |
An optional character string specifying the Dataverse to query. Default is the Harvard IQSS Dataverse. |
browser |
A logical specifying whether the query should be executed in a web browser. Default is |
... |
Optionally, additional arguments passed to |
Unlike searching on the dataverse website, the API requires searching within named metdata fields. The set of available metadata fields can be retrieved from dvSearchFields
.
A dataframe containing one variable (objectId
), made up of character strings containing dataverse objectIds.
Thomas J. Leeper
dvSearchFields
## Not run: search1 <- dvSearch(list("authorName:leeper")) search2 <- dvSearch(list(title="Denmark",title="Sweden"),boolean="OR") search3 <- dvSearch("puppies") ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.