bea2List {bea.R} | R Documentation |
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)
[Package bea.R version 1.0.6 Index]