Description Usage Arguments Value Examples
Search csv resource file stored in the datastore.
1 2 3 4 |
resource_id |
character: DKAN resource ID |
fields |
character vector: fields to be returned by the request |
filters |
named character vector: filters to be applied when retrieving records |
limit |
numeric: Number of records to retrieve |
offset |
numeric: Number of results to skip in the beginning |
sort |
named character vector: field to be sorted by |
q |
character: full text query filter |
url |
character: The DKAN site URL |
credentials |
Optional list parameter. Default values are Cookie and Token generated by dkan_setup() |
data.frame or character
1 2 3 4 5 6 7 8 9 10 11 12 | ## Not run:
ds_search(resource_id = '10c578a6-63c4-40bd-a55d-0c27bf276283',
fields = c('Country','City','Region','Population'),
filters = list('Country'=c('co','my'), 'Region'=c('04','09','22')),
limit = 20,
offset = 0,
sort = c('Country'='asc'),
q = "puertica",
url = get_url(),
as = 'df')
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.