Skip to contents

Returns the child categories for a given parent category.

Usage

fred_category_children(category_id = 0L)

Arguments

category_id

Integer. The parent category ID. Default 0 (root).

Value

A data frame of child categories.

See also

Examples

# \donttest{
op <- options(fred.cache_dir = tempdir())
# Top-level categories
fred_category_children()
#> 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)
# }