odataR_get_data: Get (part of) an OData data structure

Description Usage Arguments Value Examples

Description

This is the only function in the package that actually acquires data from the database. This function returns a block of at most 10000 rows (restriction of the interface) in XML format. It is therefore also suitable in cases where the result is not a nice table (e.g. in the case of TypeInfo). The function odataR_get_table will call this function one or more times (depending on the size of the data) and convert the combined data to a table or property structure.

Usage

1
2
odataR_get_data(root = odataR_get_root_data(), table_id = NULL,
  query = NULL, save_file_name = NULL)

Arguments

root

Root of data structure

table_id

Identification of table

query

OData query to restrict data returned from structure, See odataR_get_table for examples of queries

save_file_name

Name of file to save the XML data in or NULL

Value

An XMLInternalDocument if successful otherwise NULL

Examples

1
2
3
4
5
## Not run: 
doc = odataR_get_data(table_id='82935NED')
doc = odataR_get_data(root='http://opendata.cbs.nl/ODataFeed/OData',table_id='82935NED')

## End(Not run)

HanOostdijk/odataR_old documentation built on May 28, 2019, 8:21 a.m.