xd.fred {YRmisc} | R Documentation |
Download data from Federal Reserve Bank of St. Louis
Description
This function returns a data from the Federal Reserve Bank of St. Louis database. It can take one ticker or a string of tickers, which will output a merged data frame with all observations.
Usage
xd.fred(tkr, start_date, end_date)
Arguments
tkr |
:one data ticker or a string of 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
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
[Package YRmisc version 0.1.6 Index]