getTabularData: Get web data in tabular form (data frames)

Description Usage Arguments Value Examples

View source: R/getTabularData.R

Description

A high-level function that directly queries and transforms data from any web API to a data frame or list of data frames.

Usage

1
getTabularData(x, base.url, shortnames=TRUE, alignVariables=FALSE)

Arguments

x

either a charachter string containing the whole url for the request or a named list containing the parameter names and values (see details)

base.url

a character string containing the basic url for the api

shortnames

logical, indicating whether the resulting tables (data frames) should have short variable names (default is FALSE, variable names contain nesting hierarchy)

alignVariables

logical, indicating whether variables/values should be rearranged in case the raw data was malformed (missing variable names)

Value

a list of data-frames, containing the returned data in a flat representation

Examples

1
## Not run: apidata <- getTabularData(x) 

umatter/RWebData documentation built on May 6, 2019, 11:47 a.m.