Search for a FRED series.
Search FRED for a series by full text of series or by series ID.
fredr_series_search_text( search_text, ..., tag_names = NULL, exclude_tag_names = NULL, filter_variable = NULL, filter_value = NULL, limit = NULL, offset = NULL, order_by = NULL, sort_order = NULL, realtime_start = NULL, realtime_end = NULL ) fredr_series_search_id( search_text, ..., limit = 1000L, offset = 0, order_by = NULL, sort_order = "asc", filter_variable = NULL, filter_value = NULL, realtime_start = NULL, realtime_end = NULL, tag_names = NULL, exclude_tag_names = NULL )
search_text |
A string containing the words to match against economic
data series. For use with |
... |
These dots only exist for future extensions and should be empty. |
tag_names |
A semicolon delimited string of tag names that series match all of. Defaults to no tag filtering. |
exclude_tag_names |
A semicolon delimited string of tag names that series match none of. Defaults to no tag filtering. |
filter_variable |
A string indicating the attribute to filter results
by. Possible values are: |
filter_value |
The value of the |
limit |
An integer limit on the maximum number of results to return.
Defaults to |
offset |
An integer used in conjunction with |
order_by |
A string indicating the attribute to order results by.
Defaults to
|
sort_order |
A string representing the order of the resulting series.
Possible values are: |
realtime_start |
A |
realtime_end |
A |
A tibble object where each row represents a series matching the query.
API Documentation:
if (fredr_has_key()) {
# search for series with text matching "oil" and return the top 10 most popular
# series
fredr_series_search_text(
search_text = "oil",
order_by = "popularity",
limit = 10
)
# search for series with text matching "oil" with the tag "usa" and return the
# top 10 search results
fredr_series_search_text(
search_text = "oil",
order_by = "search_rank",
limit = 10,
tag_names = "usa"
)
# search for series with text matching "unemployment" and return only series
# with monthly frequency
fredr_series_search_text(
search_text = "unemployment",
filter_variable = "frequency",
filter_value = "Monthly"
)
# search for series ID matching "UNRATE" and return oldest series first
fredr_series_search_id(
search_text = "UNRATE",
order_by = "observation_start"
)
}Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.