fredr (version 1.0.0)

fredr_category: Get a FRED category

Description

Get a FRED category

Usage

fredr_category(category_id = 0L)

Arguments

category_id

An integer ID for the category. Default is 0 for the root category. Required parameter.

Value

A tibble object containing the name and parent ID for the category indicated by category_id.

API Documentation

fred/category

See Also

fredr_category_children(), fredr_category_related(), fredr_category_series(), fredr_category_tags(), fredr_category_related_tags()

Examples

Run this code
# NOT RUN {
# Root category
fredr_category()
# "Production & Business Activity" category
fredr_category(category_id = 1L)
# }

Run the code above in your browser using DataCamp Workspace