% Generated by roxygen2: do not edit by hand % Please edit documentation in R/categories.R \name{cog_categories} \alias{cog_categories} \title{List available spending / revenue categories} \usage{ cog_categories(type = NULL, pattern = NULL) } \arguments{ \item{type}{Either `NULL` (default, return both spending and revenue rows), `"spending"`, or `"revenue"`.} \item{pattern}{Optional regex matched case-insensitively against the `category` column (e.g. `"Police"` or `"Tax"`).} } \value{ Tibble with columns `category`, `category_type`, `subtype`, `n_codes`, `item_codes` (comma-separated, alphabetical). Sorted by `category_type`, `category`, `subtype`. } \description{ Returns the category taxonomy exposed by the corpus's `summary_categories` view, grouped to one row per `(category, subtype)` pair. Use this to discover valid `category` values for [cog_spending()] / [cog_revenue()] / [cog_geographic_rollup()] and to audit which Census item codes feed each category. }