resourceAquire: Download the Resource from <URL: http://data.taipei>

Description Usage Arguments Value References See Also Examples

Description

Download the Resource from http://data.taipei

Usage

1
resourceAquire(resourceId, format = c("csv", "json", "xml"))

Arguments

resourceId

(character). The id of the resource.

format

(character). the format for downloading the resource content.

Value

A data.frame. The downloaded table of the resource.

References

http://tpeodck.gitbooks.io/data-taipei-developer-guide/content/chapter2section3.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],"xml")

## End(Not run)

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