apiData: Query data from an API

Description Usage Arguments Value Examples

View source: R/apiData.R

Description

A high-level function that automates the querying and extraction of data from a web API.

Usage

1
apiData(x, shortnames=FALSE, method="RWebData", alignVariables=FALSE)

Arguments

x

an apirequest object

shortnames

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

method

character, either "RWebData", "jsonlite", or "XML2R"

alignVariables

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

Value

an apidata-object containing the returned data in a flat representation

Examples

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

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