xd.fred: Download data from Federal Reserve Bank of St. Louis

Description Usage Arguments Examples

View source: R/xd.fred.R

Description

This function returns a data from the Federal Reserve Bank of St. Louis database

Usage

1
xd.fred(tkr, start_date, end_date)

Arguments

tkr

:data tickers used by the database

start_date

:starting date of the data(default is set as 1900-01-01)

end_date

:ending date of the data(default is set as 2018-01-01)

Examples

1
2
3
4
5
6
7
8
9
cpi <- xd.fred("CPIAUCSL") # CPI data
head(cpi)
tail(cpi)

#Frequently used tickers:
#CPIAUCSL: Consumer Price Index for All Urban Consumers: All Items
#A191RL1Q225SBEA: Real Gross Domestic Product
#DGS10: 10-Year Treasury Constant Maturity Rate
#UNRATE: Civilian Unemployment Rate

PMmisc documentation built on May 1, 2019, 9:57 p.m.

Related to xd.fred in PMmisc...