resource_search {ckanr} | R Documentation |
Search for resources.
Description
Search for resources.
Usage
resource_search(
q,
sort = NULL,
offset = NULL,
limit = NULL,
url = get_default_url(),
key = get_default_key(),
as = "list",
...
)
Arguments
q |
Query terms. It is a string of the form |
sort |
Field to sort on. You can specify ascending (e.g., score desc) or descending (e.g., score asc), sort by two fields (e.g., score desc, price asc), or sort by a function (e.g., sum(x_f, y_f) desc, which sorts by the sum of x_f and y_f in a descending order). |
offset |
Record to start at, default to beginning. |
limit |
Number of records to return. |
url |
Base url to use. Default: https://data.ontario.ca/ See
also |
key |
A privileged CKAN API key, Default: your key set with
|
as |
(character) One of list (default), table, or json. Parsing with
table option uses |
... |
Curl args passed on to |
Examples
## Not run:
resource_search(q = 'name:data')
resource_search(q = 'name:data', as = 'json')
resource_search(q = 'name:data', as = 'table')
resource_search(q = 'name:data', limit = 2, as = 'table')
resource_search(q=c("description:encoded", "name:No.2"),url='demo.ckan.org')
## End(Not run)