odataR_get_subtable: Convert a sub table (contents or properties) to a data.frame

Description Usage Arguments Value Examples

Description

Convert a sub table (contents or properties) to a data.frame. The function calls odataR_get_data one or more times (the latter if the server returns more than 10000 rows) to actually retrieve the XML data. With parameter mt one indicates that the requests relates to a 'normal' sub table or relates to the properties sub table. In these cases the data is converted to a data.frame . By specifying mt=NULL the contents is not converted to a data.frame but returned as XML.

Usage

1
odataR_get_subtable(dsn, mt = "table", query = NULL, save_XML = NULL)

Arguments

dsn

Named character vector with full name of subtable

mt

Indicates destination of the XML data. Character 'table' (default) or 'prop' or NULL

query

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

save_XML

Name of file to save the XML data in or NULL or default name

Value

A data.frame with the contents of the sub table (mt='table') or the properties of the table (mt='prop') or the XML contents of the sub table (mt=NULL)

Examples

1
2
3
4
## Not run: 
subtabs = odataR_get_subtables(table_id="82935NED")

## End(Not run)

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