getFred: Download data from FRED, using quantmod or fredr

Description Usage Arguments Value Note Examples

Description

Download data from FRED, using quantmod or fredr

Usage

1
getFred(fred_series, date_ym = T, quantmod = T, fredr = F)

Arguments

fred_series:

a string representing a series from FRED

date_ym:

boolean, if TRUE creates a monthly date variable a la French

quantmod:

if TRUE downloads FRED through the quantmod package

fredr:

if TRUE downloads FRED through the fredr package

Value

dt: a data.table

Note

The download method through quantmod (default) or fredr are mutually exlcusive. For now quantmod is more up to date given FRED move to secure download

Examples

1
dt_gdp <- getFred("GDP", date_ym = TRUE, quantmod = TRUE)

eloualiche/miscr documentation built on May 16, 2019, 3:57 a.m.