getgdp: Get a data frame with real gdp, nominal gdp and the gdp price...

View source: R/BEAData_utilities.r

getgdpR Documentation

Get a data frame with real gdp, nominal gdp and the gdp price index, annual or quarterly.

Description

Get a data frame with real gdp, nominal gdp and the gdp price index, annual or quarterly.

Usage

getgdp(gfreq = "A")

Arguments

gfreq

"A" (annual) or "Q" (quarterly). Defaults to "A".

Value

data frame with:

year (integer), rgdp, gdp, gdppi (double), if freq=="A"

date (date), rgdp, gdp, gdppi (double) if freq=="Q"

Examples

library("tidyverse")
getgdp()
getgdp("A")
getgdp("Q")

donboyd5/BEAData documentation built on July 3, 2022, 2:12 p.m.