Learn R Programming

PMmisc (version 0.1.2)

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

Description

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

Usage

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

Run this code
# NOT RUN {
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
# }

Run the code above in your browser using DataLab