Description Usage Arguments Value Examples
Convert BEA API httr response or list payload to data.table. Also, converts LONG data frame (default API format - see bea2List results) to WIDE data (with years as columns) by default
1 |
beaPayload |
An object of class 'list' or httr 'response' returned from beaGet() call to BEA API |
asWide |
Return data.table in wide format (default: TRUE) |
iTableStyle |
If "asWide = TRUE", setting "iTableStyle = TRUE" will return data.table in same format as shown on BEA website, with dates and attributes as column headers and series as rows; otherwise, results have series codes as column headers (default: TRUE) |
An object of class 'data.table' containing data from beaGet(...) with custom attributes(BDT)$params.
1 2 3 4 5 6 7 8 |
Loading required package: data.table
Creating a generic function for 'toJSON' from package 'jsonlite' in package 'googleVis'
Warning message:
In beaGet(userSpecList) : Invalid API key: yourKey
Warning message:
In bea2Tab(resp) :
Request response data not found; returned values may not contain successful BEA API response.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.