beaSearch {bea.R} | R Documentation |
Search a selection of indexed BEA data table names, series labels, and series codes.
Description
Searches indexed dataset table name, label, and series codes. CAUTION: Currently only works with NATIONAL datasets (NIPA, NIUnderlyingDetail, FixedAssets), temporarily excluding FixedAssets, and REGIONAL datasets (RegionalProduct, RegionalIncome)
Usage
beaSearch(searchTerm, beaKey = NULL, asHtml = FALSE)
Arguments
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. |
Value
An object of class 'data.table' with information about all indexed sets in which the search term was found.
Examples
beaSearch('gross domestic product', asHtml = TRUE)
[Package bea.R version 1.0.6 Index]