BEA_ParamVals: Get Parameter Values for a Parameter in a Chosen BEA Dataset

Description Usage Arguments Details Value Examples

Description

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

Usage

1
BEA_ParamVals(dsname, pname, key)

Arguments

dsname

text name of the dataset (e.g., "NIPA") (see BEA_DSlist)

pname

text name of the parameter of interest (e.g., "TableID" for the dataset "NIPA") (see BEA_DSparams)

key

Your BEA API key (can be obtained for free - check www.bea.gov)

Details

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

Value

data frame with information about allowable values for the parameter of interest

Examples

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)

donboyd5/apitools documentation built on May 15, 2019, 10:38 a.m.