extract_results: Extract the results of a query from the response json

Description Usage Arguments Value

View source: R/extract.R

Description

extract_results processes the results of the query and extracts the data in a format suitable for analysis.

Usage

1
extract_results(json, custom = NULL)

Arguments

json

The results of the query as parsed json.

custom

A named list of character vectors. Each name/value pair indicates the item labels to use for the field with the given name when constructing the results dataframes. It is necessary to specify item labels explicitly using this argument when your query uses custom aggregate variables, as the number of variables in the results will not agree with the number of variables shown in the metadata.

Value

A list of the results for the given cube.


houseofcommonslibrary/statxplorer documentation built on Sept. 13, 2020, 12:14 a.m.