resourceMetadataSearch: Search Resource of <URL: http://data.taipei> via Metadata

Description Usage Arguments Details Value References See Also Examples

Description

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

Usage

1
resourceMetadataSearch(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.

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.

Value

A data.table. A table of related resources.

References

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

See Also

getResources

Examples

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)

TaipeiRHackers/DataTaipei documentation built on May 9, 2019, 4:18 p.m.