Get a source of economic data

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

Arguments

source_id

An integer ID for the data source.

...

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

Examples

if (fredr_has_key()) {
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"))
}
#> # A tibble: 3 × 5
#>      id realtime_start realtime_end name                                   link 
#>   <int> <chr>          <chr>        <chr>                                  <chr>
#> 1    14 1998-07-31     2006-12-31   Survey Research Center: University of… http…
#> 2    14 2007-01-01     2014-12-31   Thomson Reuters/University of Michigan http…
#> 3    14 2015-01-01     9999-12-31   University of Michigan                 http…