fredr (version 1.0.0)

fredr_source: Get a source of economic data

Description

Get a source of economic data

Usage

fredr_source(source_id = NULL, realtime_start = NULL, realtime_end = NULL)

Arguments

source_id

An integer ID for the data source. Required parameter.

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/source

See Also

fredr_sources(), fredr_source_releases()

Examples

Run this code
# NOT RUN {
fredr_source(source_id = 14L)

# Has this source ID ever changed over time?
fredr_source(source_id = 14L, realtime_start = as.Date("1990-01-01"))
# }

Run the code above in your browser using DataLab