Skip to contents

Creates a RecipeCategory object for classifying recipes.

Usage

recipe_category(name, description = "", parent = NULL)

Arguments

name

Character. Category identifier (e.g. "labor_market").

description

Character. Human-readable description. Defaults to empty.

parent

RecipeCategory object or character parent category name (default NULL). If a string is provided, it creates a parent category with that name.

Value

A RecipeCategory object.

Examples

cat <- recipe_category("labor_market", "Labor market indicators")

# With parent hierarchy
sub <- recipe_category(
  "employment", "Employment stats",
  parent = "labor_market"
)