Learn R Programming

DataTaipei (version 0.1)

dataSetMetadataSearch: Search Dataset of http://data.taipei via Metadata

Description

Search Dataset of http://data.taipei via Metadata

Usage

dataSetMetadataSearch(q = NULL, limit = 1000, offset = 0)

Arguments

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.

Value

A data.table. A table of related datasets.

Details

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 = 6th row.

References

http://tpeodck.gitbooks.io/data-taipei-developer-guide/content/chapter2section1.html

See Also

getResources

Examples

Run this code
## Not run: 
# rs <- dataSetMetadataSearch(q = "youbike")
# rid <- getResources(rs, 1)
# suppressWarnings(df <- resourceAquire(rid$resourceId[1]))
# ## End(Not run)

Run the code above in your browser using DataLab