Fetch Underlying GDP by Industry Data from BEA API
beaUnderlyingGDPbyIndustry.Rd
This function retrieves Underlying GDP by Industry data from the Bureau of Economic Analysis (BEA) API.
Usage
beaUnderlyingGDPbyIndustry(
TableID = "",
Industry = "",
Year = "",
ResultFormat = "json",
beaKey = NULL
)
Arguments
- TableID
A character string specifying the TableID for the desired data.
- Industry
A character string specifying the Industry code.
- Year
Year for which data is requested.
- ResultFormat
Default is "json".
- beaKey
A character string containing the BEA API key. If NULL, the function will attempt to retrieve it using `getbeaKey()`.
Details
This function makes a request to the BEA API to fetch Underlying GDP by Industry data. It requires a valid BEA API key, which can be obtained from https://apps.bea.gov/API/signup/. If the API key is not provided, the function attempts to retrieve it using `getbeaKey()`.