Retrieve information from CBS Open Data API
cbsODataAPI(api = stop("'api' must be provided"), DSD = stop("'DSD' must be provided"), scheme = NULL, filter = NULL, append = NULL, query = FALSE, curl = NULL) cbsOdataDFgather(data = stop("'data' must be provided")) cbsOdataDFtoXTS(data = stop("'data' must be provided")) cbsODataTables(url = "https://opendata.cbs.nl/ODataCatalog/Tables", fields = c("Identifier", "Title", "Frequency", "Period")) cbsODataChangeDates(str)
api | an API address |
---|---|
DSD | a datastructure definition identified by the triplet |
scheme | an API scheme. Available scheme "data". |
filter | for scheme "data": a named list of filters passed to the API. The position of list items corresponds to the API filter dimensions. Each list item is either empty (no filter on dimension) or a character vector containing dimension members to be included in the results. Dimension members can be obtained from |
append | append string to the dimension url. |
query | logical to return OData http url only. |
curl | optional, |
data | a data frame created with |
url | location of table list XML document. |
fields | character vector to extract content properties of entries. |
str | a character string with CBS OData dates, e.g. |
xml.list | a character string returned from |
Retrieve information from CBS Netherlands Statline Open Data API using JSON format.
https://github.com/object/Simple.OData.Client
# NOT RUN { api <- "https://opendata.cbs.nl/ODataApi/OData/" DSD <- "82572ENG" # Input-Output: "83068ENG" cbsODataAPI(api=api, DSD=DSD, scheme = NULL) str(cbsODataAPI(api=api, DSD=DSD, scheme="SectorBranchesSIC2008", query=FALSE)) str(cbsODataAPI(api=api, DSD=DSD, scheme="TypedDataSet")) # }