Get a release of economic data

fredr_release(release_id, ..., realtime_start = NULL, realtime_end = NULL)

Arguments

release_id

An integer ID of the release.

...

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

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.

API Documentation

fred/release

Examples

if (fredr_has_key()) {
# Release as of today
fredr_release(release_id = 20)

# For some releases, adding realtime dates returns the history of changes
# the release went through
fredr_release(9, realtime_start = as.Date("1950-01-01"))
}
#> # A tibble: 3 × 7
#>      id realtime_start realtime_end name               press_release link  notes
#>   <int> <chr>          <chr>        <chr>              <lgl>         <chr> <chr>
#> 1     9 1966-01-10     2001-06-12   Advance Monthly R… TRUE          http…  NA  
#> 2     9 2001-06-13     2012-10-15   Advance Monthly S… TRUE          http…  NA  
#> 3     9 2012-10-16     9999-12-31   Advance Monthly S… TRUE          http… "The…