Description Usage Arguments Details Value Functions Examples
Each function receives a character string and returns a data.frame containing information on different series, tags, or related tags of the search.
1 2 3 4 5 | fred_search(text, key = NULL, args = list())
fred_search_tags(text, key = NULL, args = list())
fred_search_related_tags(text, key = NULL, args = list())
|
text |
character string used for search. All spaces will automatically be converted appropriately. |
key |
32 character lower-cased alpha-numeric character string |
args |
named list of other arguments passed to the API, including "limit", "offset", "sort_order", etc. See details below. |
Search arguments accept any of the following:
search_typeeither "full_text" or "series_id" determining whether the description, title, units, and other information are searched or only the id. Defaults to full text.
realtime_start, realtime_endcharacter string of format "YYYY-MM-DD" determining the real-time period. This is used to find historical series.
limitinteger between 1 and 1000 determining the maximum number of results to return.
offsetNon-negative integer
order_byOne of the following: "search_rank", "series_id", "title", "units", "frequency", "seasonal_adjustment", "realtime_start", "realtime_end", "last_updated", "observation_start", "observation_end", "popularity", or "group_popularity". Default is "search_rank".
sort_orderEither "asc" for ascending or "desc" for descending order.
filter_variableString to filter the results by.
tag_namesString of tag names separated by semicolons for filtering results.
exclude_tag_namesString of tag names separated by semicolons that should not be included.
These should be included in a list such as args = list(limit = 10, sort_order = "asc").
The results are included in a data.frame with all information about the series,
including detailed notes. The results are best viewed in the RStudio Viewer or
with the title extracted.
Each function returns the following information in a data.frame.
fred_searchSeries id, its title, observations start and end, frequency, units, seasonal adjustment type, popularity, realtime start and end, and when it was last updated
fred_search_tagsTag name and its group id, popularity of tag, number of series in each tag, when it was created, and other notes
fred_search_related_tagsSame as fred_search_tags
data.frame with entries described in details
fred_search: obtain series related to search
fred_search_tags: obtain tags related to search
fred_search_related_tags: obtain related tags related to search
1 2 3 4 5 6 7 8 9 10 11 12 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.