Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

fredr_release

Get a release of economic data


Description

Get a release of economic data

Usage

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

See Also

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"))
}

fredr

An R Client for the 'FRED' API

v2.1.0
MIT + file LICENSE
Authors
Sam Boysel [aut, cre], Davis Vaughan [aut]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.