Description Usage Arguments Value Examples
View source: R/fred_functions.R
fred
downloads data from the Federal Reserve Economic Database
(FRED) and formats it to an 'xts' object.
1 2 |
... |
vector of FRED codes as strings. If string begins with '?',
|
trans |
vector of characters used to transform the corresponding
series. Calls the |
form |
character string. If specified, formula used to combine the FRED series. Similar to the 'formula' field on the FRED website. Each series in ... is assigned a letter (a)-(z) sequentially to be used in the formula. |
freq |
time frequency to convert with which to convert the series. Accepts 'y', 'q', 'm', 'w', or 'd'. |
date |
starting and ending period for the series. Uses 'xts' conventions, e.g. '1970-01/1972-10' |
opt |
additional options passed to |
name |
vector specifying the resulting column names. If |
units |
units of the resulting object. Appended to the attributes.
If |
'xts' object
1 2 3 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.