Description Usage Arguments Value API Documentation See Also Examples
View source: R/fredr_category_series.R
Get the series in a category
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
category_id |
An integer ID for the category. |
... |
These dots only exist for future extensions and should be empty. |
filter_variable |
A string indicating which attribute to indicate the
attribute that results are filtered by. Possible values include: |
filter_value |
A string giving the value of the |
tag_names |
A string indicating which series tags to match. Multiple
tags can be delimited by a semicolon in a single string (e.g. |
exclude_tag_names |
A string indicating which series tags should not be matched. Multiple tags can be delimited by a semicolon in a single string (e.g. '"usa;gnp"“). |
limit |
An positive integer indicating maximum number of results to
return. Possible values are any integer between |
offset |
An non-negative integer used in conjunction with |
order_by |
A string indicating an attribute by which the results are ordered by. Possible values include:
|
sort_order |
A string representing the order of the resulting series.
Possible values are: |
realtime_start |
A |
realtime_end |
A |
A tibble
object with information for series matching the request for
the category specified in category_id
.
fredr_category()
, fredr_category_children()
, fredr_category_related()
,
fredr_category_tags()
, fredr_category_related_tags()
1 2 3 4 5 6 | if (fredr_has_key()) {
# Top 10 most popular series belonging to the "Employment Cost Index" category
fredr_category_series(category_id = 1L, limit = 10L, order_by = "popularity")
# Series in the "Employment Cost Index" category, ordered by descending observation frequency
fredr_category_series(category_id = 4L, order_by = "frequency", sort_order = "desc")
}
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.