Given a series ID, return a sequence of dates in history when a series' data values were revised or new data values were released as a tibble object.

fredr_series_vintagedates(
  series_id,
  ...,
  limit = NULL,
  offset = NULL,
  sort_order = NULL,
  realtime_start = NULL,
  realtime_end = NULL
)

Arguments

series_id

A string ID for the FRED series.

...

These dots only exist for future extensions and should be empty.

limit

An integer limit on the maximum number of results to return. Defaults to 1000, the maximum.

offset

An integer used in conjunction with limit for long series. This mimics the idea of pagination to retrieve large amounts of data over multiple calls. Defaults to 0.

sort_order

A string representing the order of the resulting series. Possible values are: "asc" (default), and "desc".

realtime_start

A Date indicating the start of the real-time period. Defaults to today's date. For more information, see Real-Time Periods.

realtime_end

A Date indicating the end of the real-time period. Defaults to today's date. For more information, see Real-Time Periods.

Value

A tibble object where each row is a distinct vintage date.

API Documentation

fred/series/vintagedates

See also

Examples

if (fredr_has_key()) { # All data vintages for the "UNRATE" series fredr_series_vintagedates(series_id = "UNRATE") # 10 most recent data vintages for the "UNRATE" series fredr_series_vintagedates(series_id = "UNRATE", limit = 10L, sort_order = "desc") }
#> # A tibble: 10 x 1 #> vintage_dates #> <chr> #> 1 2021-06-04 #> 2 2021-05-07 #> 3 2021-04-02 #> 4 2021-03-05 #> 5 2021-02-05 #> 6 2021-01-08 #> 7 2020-12-04 #> 8 2020-11-06 #> 9 2020-10-02 #> 10 2020-09-04