View source: R/BEAData_utilities.r
getgdp | R Documentation |
Get a data frame with real gdp, nominal gdp and the gdp price index, annual or quarterly.
getgdp(gfreq = "A")
gfreq |
"A" (annual) or "Q" (quarterly). Defaults to "A". |
data frame with:
year (integer), rgdp, gdp, gdppi (double), if freq=="A"
date (date), rgdp, gdp, gdppi (double) if freq=="Q"
library("tidyverse") getgdp() getgdp("A") getgdp("Q")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.