fredr_tags {fredr} | R Documentation |
Get FRED series tags
Description
Get FRED tags. Optionally, filter results by tag name, tag group, or
search text. FRED tags are attributes assigned to a series. By default,
all tags are returned, unfiltered, up to the limit
.
Usage
fredr_tags(
...,
tag_names = NULL,
tag_group_id = NULL,
search_text = NULL,
limit = NULL,
offset = NULL,
order_by = NULL,
sort_order = NULL,
realtime_start = NULL,
realtime_end = NULL
)
Arguments
... |
These dots only exist for future extensions and should be empty. |
tag_names |
A semicolon delimited string of tag names to only include in the response. No filtering by tag names by default (i.e. all FRED tags returned). |
tag_group_id |
A string tag group id to filter tags by type. No filtering by tag group by default. Possible values are:
|
search_text |
A string indicating the words to find matching tags with. No filtering by search words by default. |
limit |
An integer limit on the maximum number of results to return.
Defaults to |
offset |
An integer used in conjunction with |
order_by |
Order results by values of the specified attribute. Possible values are:
|
sort_order |
A string representing the order of the resulting series,
sorted by the attribute values specified by |
realtime_start |
A |
realtime_end |
A |
Value
A tibble
containing tags and their descriptions. Data include tag
name, group ID, popularity, series count, tag creation date, and additional
notes.
API Documentation
See Also
fredr_category_tags()
, fredr_category_related_tags()
, fredr_docs()
,
fredr_release_tags()
, fredr_release_related_tags()
,
fredr_series_search_tags()
, fredr_series_search_related_tags()
,
fredr_tags_series()
, fredr_related_tags()
Examples
if (fredr_has_key() && interactive()) {
# Information for all tags
fredr_tags()
# Information for just the "gdp" and "oecd" tags
fredr_tags(tag_names = "gdp;oecd")
# Information for all tags in the "geo" group
fredr_tags(tag_group_id = "geo")
# Information for tags matching the text "unemployment"
fredr_tags(search_text = "unemployment")
}