Description Usage Arguments Details Value Examples
BEA_ParamVals
returns a data frame with a list of parameters for the particular dataset
Pay particular attention to whether a data set will accept multiple table flags, or whether tables must be
retrieved one by one
1 | BEA_ParamVals(dsname, pname, key)
|
dsname |
text name of the dataset (e.g., "NIPA") (see |
pname |
text name of the parameter of interest (e.g., "TableID" for the dataset "NIPA") (see |
key |
Your BEA API key (can be obtained for free - check www.bea.gov) |
Queries the BEA API to get allowable values for a parameter of interest for a dataset of interest. Particularly useful datasets are NIPA and NIUnderlyingDetail
data frame with information about allowable values for the parameter of interest
1 2 3 4 5 6 | nipa.tablist <- BEA_ParamVals("NIPA", "TableID") # don't need to give a key if you have yours set
head(nipa.tablist)
# don't need to give a key if you have yours set
nipa.uld.tablist <- BEA_ParamVals("NIUnderlyingDetail", "TableID")
head(nipa.uld.tablist)
BEA_ParamVals("RegionalData", "KeyCode") # TPI_SI is Total personal income (state annual income)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.