beaSearch | R Documentation |
Searches indexed dataset table name, label, and series codes. CAUTION: Currently only searches within NATIONAL datasets (NIPA, NIUnderlyingDetail, FixedAssets).
beaSearch(searchTerm, beaKey = NULL, asHtml = FALSE)
searchTerm |
A word or phrase of class 'character' to be found in BEA datasets |
beaKey |
Character string representation of user API key. Necessary for first time use and updates; recommended for anything beyond one-off searches from the console. |
asHtml |
Option to return results as DT markup, viewable in browser. Allows search WITHIN YOUR ALREADY-FILTERED RESULTS ONLY. Requires package 'DT' to be installed. |
An object of class 'data.table' with information about all indexed sets in which the search term was found.
beaSearch('gross domestic product', beaKey = Sys.getenv("BEA_API_KEY"), asHtml = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.