Skip to contents

Returns all series belonging to a given category. Automatically paginates through all results.

Usage

fred_category_series(category_id, limit = 1000L)

Arguments

category_id

Integer. The category ID.

limit

Integer. Maximum number of results to return. Default 1000.

Value

A data frame of series metadata.

See also

Examples

# \donttest{
op <- options(fred.cache_dir = tempdir())
fred_category_series(32992)
#> Error in fred_get_key(): No FRED API key found.
#>  Set one with `fred_set_key()` or the `FRED_API_KEY` environment variable.
#>  Register for a free key at <https://fredaccount.stlouisfed.org/apikeys>.
options(op)
# }