--- title: "Data function - categorical" slug: "categorical-data-reference" updated: 2022-12-14T00:49:33Z published: 2022-12-14T00:49:33Z canonical: "code.tag.bio/categorical-data-reference" --- > ## Documentation Index > Fetch the complete documentation index at: https://code.tag.bio/llms.txt > Use this file to discover all available pages before exploring further. # categorical ### categorical **creates: *categorical collection or variable*** A `categorical` data function directly references a categorical `collection` or `variable` in the data model, It can optionally refer to all categorical collections. | **attribute** | **type** | **description** | **options** | | --- | --- | --- | --- | | `collection` | string | the name of a categorical `collection` | any categorical `collection` | | `variable` | string | the name of a `variable` within the specified `collection` | any `variable` within a categorical `collection` | This data function represents all categorical collections: ``` { "data_function_type": "categorical" } ``` This data function represents a categorical collection and all of the variables therein: ``` { "data_function_type": "categorical", "collection": "collection_name" } ``` This data function represents a categorical collection and a specific variable within that collection. ``` { "data_function_type": "categorical", "collection": "collection_name", "variable": "variable_name" } ```