fredr_category_children: Get the child categories for a specified FRED parent category

Description Usage Arguments Value API Documentation See Also Examples

View source: R/fredr_category_children.R

Description

Get the child categories for a specified FRED parent category

Usage

1
2
3
4
5
6
fredr_category_children(
  category_id,
  ...,
  realtime_start = NULL,
  realtime_end = NULL
)

Arguments

category_id

An integer ID for the category.

...

These dots only exist for future extensions and should be empty.

realtime_start

A Date indicating the start of the real-time period. Defaults to today's date. For more information, see Real-Time Periods.

realtime_end

A Date indicating the end of the real-time period. Defaults to today's date. For more information, see Real-Time Periods.

Value

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

API Documentation

fred/category/children

See Also

fredr_category(), fredr_category_related(), fredr_category_series(), fredr_category_tags(), fredr_category_related_tags()

Examples

1
2
3
4
5
6
if (fredr_has_key()) {
# Children of the root category
fredr_category_children(category_id = 0L)
# Children of the "Production & Business Activity" category
fredr_category_children(category_id = 1L)
}

Example output



fredr documentation built on Jan. 30, 2021, 1:06 a.m.