Returns information on the recently updated series on the FRED server.
fredr_series_updates(
...,
filter_value = NULL,
start_time = NULL,
end_time = NULL,
limit = NULL,
offset = NULL,
realtime_start = NULL,
realtime_end = NULL
)
These dots only exist for future extensions and should be empty.
Filter results by type of geographic region of economic the data series. Possible values include
"all"
(default) - no filtering
"macro"
- filters results macroeconomic regions (e.g. entire countries)
"regional"
- filters results to series for regions of the United States
such as states, counties, and Metropolitan Statistical Areas (MSA).
A datetime object indicating the start time to filter series updates results.
A datetime object indicating the start time to filter series updates results.
An integer limit on the maximum number of results to return.
Defaults to 1000
, the maximum.
An integer used in conjunction with limit
for long series.
This mimics the idea of pagination to retrieve large amounts of data over
multiple calls. Defaults to 0
.
A Date
indicating the start of the real-time period.
Defaults to today's date. For more information, see
Real-Time Periods.
A Date
indicating the end of the real-time period.
Defaults to today's date. For more information, see
Real-Time Periods.
A tibble
object where each row represents a series. Rows are sorted
with most recently updated series appearing first.
if (fredr_has_key()) {
# Get all recently updated "regional" series
fredr_series_updates(filter_value = "regional")
# Most recently udpated series are returned first
updates <- fredr_series_updates(filter_value = "regional")$last_updated
is.unsorted(rev(as.POSIXct(updates)))
}
#> [1] FALSE