getFed | R Documentation |
It downloads financial and economic time series data from the Fed.
getFed(var.name="UNRATE", freq="Monthly")
var.name |
The name of variable as used by <"https://fred.stlouisfed.org">. For example, "UNRATE" denotes unemployment rate, "CPIAUCSL" is monthly consumer price index, "GDP" is Gross domestic product, and "ICSA" is the initial claim seasonally adjusted. User please check with the web for symbol. |
freq |
The time series frequency, match Fed label, for example,"Monthly","Quarterly". |
This function connects with <"https://fred.stlouisfed.org"> and downloads the specified market data. The rownames of downloaded data is embedded by the timestamp already.
Retrieved Fed time series data, but without any time series format.
Ho Tsung-wu <tsungwu@ntnu.edu.tw>, College of Management, National Taiwan Normal University.
#To save time, the example below is commented.
output=getFed(var.name="UNRATE", freq="Monthly")
head(output)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.