Learn R Programming

DataTaipei (version 0.1)

resourceAquire: Download the Resource from http://data.taipei

Description

Download the Resource from http://data.taipei

Usage

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

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

Run the code above in your browser using DataLab