Learn R Programming

fred (version 0.3.1)

fred_category: Get a FRED category

Description

Returns information about a single category. The FRED category tree starts at category 0 (the root) and branches into 8 top-level categories: Money, Banking & Finance; Population, Employment & Labor Markets; National Accounts; Production & Business Activity; Prices; International Data; U.S. Regional Data; and Academic Data.

Usage

fred_category(category_id = 0L)

Value

A data frame with category metadata.

Arguments

category_id

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

See Also

Other categories: fred_category_children(), fred_category_series()

Examples

Run this code
# \donttest{
op <- options(fred.cache_dir = tempdir())
try({
  # Root category
  fred_category()

  # National Accounts (category 32992)
  fred_category(32992)
})
options(op)
# }

Run the code above in your browser using DataLab