fredr_release: Get a release of economic data

Description Usage Arguments Value API Documentation See Also Examples

View source: R/fredr_release.R

Description

Get a release of economic data

Usage

1
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

See Also

fredr_releases(), fredr_releases_dates(), fredr_release_dates(), fredr_release_series(), fredr_release_sources(), fredr_release_tags(), fredr_release_related_tags(), fredr_release_tables()

Examples

1
2
3
4
5
6
7
8
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 documentation built on Jan. 30, 2021, 1:06 a.m.