Each of the functions accept a series ID from FRED and return a data.frame with information about the series.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32
fred_series(..., key = NULL, realtime_start = NULL, realtime_end = NULL) fred_series_release( ..., key = NULL, realtime_start = NULL, realtime_end = NULL ) fred_series_categories( ..., key = NULL, realtime_start = NULL, realtime_end = NULL ) fred_series_tags(..., key = NULL, realtime_start = NULL, realtime_end = NULL) fred_observations( ..., key = NULL, realtime_start = NULL, realtime_end = NULL, all = TRUE ) fred_series_vintage( ..., key = NULL, realtime_start = NULL, realtime_end = NULL )
character vectors of series to fetch. If named, then the names are used to identify the series in the result.
32 character lower-cased alpha-numeric character string
character date strings of format "YYY-MM-DD" used obtain information that was known during the specified time period. If empty, the latest update of the information is used.
logical; should all observations be used? Defaults to
Each function returns the following information in a data.frame.
Date of observation, its value, and the realtime start and end dates
Series id, its title, observations start and end, frequency, units, seasonal adjustment type, popularity, realtime start and end, and when it was last updated
Category id, its name, and the id of its parent
Release id, its name, a url link, whether there is a press release, and realtime start and end dates
Tag name, its group id, popularity, the number of series that are tagged, when it was created, and any notes about the tag
dates of each vintage
data.frame or list
fred_series: get information about the series including observation periods, seasonal adjustment, units, title, etc.
fred_series_release: get the release information about the series
fred_series_categories: get the categories into which a series falls
fred_series_tags: get the FRED tags for the series
fred_observations: get the observational data for a series
fred_series_vintage: get the dates in which the data for the series were revised or released. Returns a named list of dates.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.