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

beaViz

Visualize BEA API response payload


Description

When entered into the R console, the function below starts an interactive dashboard. CAUTION: Currently only works with NATIONAL datasets (NIPA, NIUnderlyingDetail, FixedAs-sets). R Studio users must opt to "show in browser" for this method to be fully functional.

Usage

beaViz(beaPayload = NULL, beaKey = NULL)

Arguments

beaPayload

An httr response from call to BEA API

beaKey

Your 36-digit BEA API key

Examples

userSpecList <- list('UserID' = 'yourKey' ,
								'Method' = 'GetData',
								'datasetname' = 'NIPA',
								'Frequency' = 'A',
								'TableID' = '68',
								'Year' = 'X')		
resp <- beaGet(userSpecList)
BDF <- beaViz(resp)
userSpecList <- list('UserID' = 'yourKey' ,
								'Method' = 'GetData',
								'datasetname' = 'NIPA',
								'Frequency' = 'A',
								'TableID' = '68',
								'Year' = 'X')

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.