---
title: "categorical-range"
slug: "categorical-range-parser"
updated: 2022-07-28T00:11:18Z
published: 2022-07-28T00:11:18Z
---

> ## 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-range

The `categorical-range` **parser** will load data from a range of columns in a source data table and create categorical **variables** within a **collection**.

It does not use the *column* attribute, because the columns are defined by the range attributes *start* and *end*.

The categorical **variables** produced will be named after the column headers within the range.

```
{
  "parser_type": "categorical-range", 
  "table_alias": "tata".
  "start": 1,
  "end": 10,
  "indicator": "yes",
  "collection": "collection_name"
}
```

## start

**usage: *optional*** The `start` attribute value is an integer indicating which column begins the range (inclusive). Column indexes start at 0 (first column).

The `start` attribute will default to the 0th column index.

## end

**usage: *optional*** The end attribute value is an integer indicating which column ends the range (inclusive).

The *end* attribute will default to the last column index.

## indicator

**usage: *optional*** The `indicator` attribute value is an integer or string indicating the value which will include an entity within a categorical variable.

The `indicator` attribute will default to the value 1 - i.e. the 1-hot encoding or dummy variable indicator.
