Description Usage Arguments Details Value Examples
BEA_RgnData returns a data frame with requested regional data. Right now only works with annual.
1  | BEA_RgnData(keycode, key)
 | 
keycode | 
 a variable name (see   | 
key | 
 Your BEA API key (can be obtained for free - check www.bea.gov); default: my key  | 
Queries the BEA API to get the data. It determines from the keycode whether it is annual or quarterly data
data frame with the regional data
1 2 3 4 5 6 7 8 9 10  | BEA_DSparams("RegionalData")
geofips <- BEA_ParamVals("RegionalData", "GeoFips")
head(geofips)
BEA_ParamVals("RegionalData", "KeyCode")
keycode <- "GDP_SP"
df <- BEA_RgnData(keycode)
head(df)
# Now get quarterly data
df <- BEA_RgnData("PROP_QI")
head(df)
 | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.