bea2List: Convert BEA API httr response payload to list. . Method taken...

Description Usage Arguments Value Examples

Description

Convert BEA API httr response payload to list. . Method taken from https://github.com/us-bea/beaR/blob/master/R/bea2List.r

Usage

1
bea2List(beaPayload, isMeta = FALSE)

Arguments

beaPayload

An object with httr class 'response' from call to BEA API

isMeta

Special parameter meant to interact with metadata functions (default: FALSE)

Value

An object of class 'list' of several dimensions. View list structure using 'str(yourList)'.

Examples

1
2
3
4
5
6
7
8
userSpecList <- list('UserID' = 'yourKey' ,
								'Method' = 'GetData',
								'datasetname' = 'NIPA',
								'Frequency' = 'A',
								'TableID' = '68',
								'Year' = 'X')
resp <- beaGet(userSpecList, asTable = FALSE)
BL <- bea2List(resp)

CommerceDataService/eu.us.opendata documentation built on May 6, 2019, 12:49 p.m.