Description Usage Arguments Details Value References See Also Examples
Search Resource of http://data.taipei via Metadata
1 | resourceMetadataSearch(q = NULL, limit = 1000, offset = 0)
|
q |
(character). Keyword of the datasets. Please read the details for more information. |
limit |
(integer). Limit the number of returned records. |
offset |
(integer). The start position of the returned records. Please read the details for more information. |
You could directly put the keyword into q
. For example, dataSetMetadataSearch(q = "youbike")
.
q
also accept advanced usage such as q="title:youbike cost:free"
which will return the records whose title contains "youbike" and cost contains "free". The schema is "field-1:condition-1 field-2:condition-2 ...". The blank space separates each condition. For more details, please check the reference.
For offset, here is an example. If offset = 5
, the dataSetMetadataSearch
will return the 1 + 5 = 6
th row.
A data.table. A table of related resources.
http://tpeodck.gitbooks.io/data-taipei-developer-guide/content/chapter2section2.html
1 2 3 4 5 6 | ## Not run:
rs <- dataSetMetadataSearch(q = "youbike")
rid <- getResources(rs, 1)
suppressWarnings(df <- resourceAquire(rid$resourceId[1]))
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.