Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

bea2List

Convert BEA API httr response payload to list


Description

Convert BEA API httr response payload to list

Usage

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

userSpecList <- list('UserID' = 'yourKey' ,
								'Method' = 'GetData',
								'datasetname' = 'NIPA',
								'Frequency' = 'A',
								'TableID' = '68',
								'Year' = 'X')
resp <- beaGet(userSpecList, asTable = FALSE)
BL <- bea2List(resp)

bea.R

Bureau of Economic Analysis API

v1.0.6
CC0
Authors
Andrea Batch [aut, cre], Jeff Chen [ctb], Walt Kampas [ctb]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.