Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

beaSearch

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)

bea.R

Bureau of Economic Analysis API

v1.0.6
CC0
Authors
Andrea Batch [aut, cre], Jeff Chen [ctb], Walt Kampas [ctb]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.