bea2List | R Documentation |
Convert BEA API httr response payload to list
bea2List(beaPayload, isMeta = FALSE)
beaPayload |
An object with httr class 'response' from call to BEA API |
isMeta |
Special parameter meant to interact with metadata functions (default: FALSE) |
An object of class 'list' of several dimensions. View list structure using 'str(yourList)'.
userSpecList <- list('UserID' = Sys.getenv("BEA_API_KEY"),
'Method' = 'GetData',
'datasetname' = 'NIPA',
'Frequency' = 'A',
'TableName' = 'T20405',
'Year' = 'X')
resp <- beaGet(userSpecList, asTable = FALSE)
BL <- bea2List(resp)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.