fred_series {eFRED}R Documentation

Fetch Data or Information on a SERIES in FRED

Description

Each of the functions accept a series ID from FRED and return a data.frame with information about the series.

Usage

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
)

Arguments

...

character vectors of series to fetch. If named, then the names are used to identify the series in the result.

key

32 character lower-cased alpha-numeric character string

realtime_start, realtime_end

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.

all

logical; should all observations be used? Defaults to TRUE. If FALSE, only observations existing in all series will be kept.

Details

Each function returns the following information in a data.frame.

fred_observations

Date of observation, its value, and the realtime start and end dates

fred_series

Series id, its title, observations start and end, frequency, units, seasonal adjustment type, popularity, realtime start and end, and when it was last updated

fred_series_categories

Category id, its name, and the id of its parent

fred_series_release

Release id, its name, a url link, whether there is a press release, and realtime start and end dates

fred_series_tags

Tag name, its group id, popularity, the number of series that are tagged, when it was created, and any notes about the tag

fred_series_related_tags

Same as fred_series_tags

fred_series_vintage

dates of each vintage

fred_category_related_tags

Same as fred_category_tags

Value

data.frame or list

Functions


[Package eFRED version 0.1.0 Index]