getFed {JFE} | R Documentation |
Download financial and economic time series data from the Fed
Description
It downloads financial and economic time series data from the Fed.
Usage
getFed(var.name="UNRATE", freq="Monthly")
Arguments
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". |
Details
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.
Value
Retrieved Fed time series data, but without any time series format.
Author(s)
Ho Tsung-wu <tsungwu@ntnu.edu.tw>, College of Management, National Taiwan Normal University.
Examples
#To save time, the example below is commented.
output=getFed(var.name="UNRATE", freq="Monthly")
head(output)