--- title: "Data function - numeric-slice" slug: "numeric-slice-data-function" updated: 2022-07-27T14:44:39Z published: 2022-07-27T14:44:39Z canonical: "code.tag.bio/numeric-slice-data-function" --- > ## 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. # numeric-slice ### numeric-slice **creates: *categorical variable*** A `numeric-slice` data function produces a categorical `variable`. The categorical variable will be assigned based on whether the `criterion`, a numeric `variable`, satisfies the `operator` and `value`. | **attribute** | **type** | **description** | **options** | | --- | --- | --- | --- | | `operator` | string | a symbol denoting the comparative operation to perform | `<``<=``>``>=``=``!=` | | `criterion` | object | numeric data to evaluate | `collection``data_function``argument_reference` | | `value` | intfloat | numeric data | `collection``data_function``argument_reference` | ``` { "data_function_type": "numeric-slice", "criterion": ..., "operator": ">", "value": # } ```