--- title: "categorical-matrix" slug: "categorical-matrix-parser" updated: 2022-07-27T17:30:36Z published: 2022-07-27T17:30:36Z canonical: "code.tag.bio/categorical-matrix-parser" --- > ## 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-matrix The *categorical-matrix* **parser** will load data from multiple rows and columns from a source data table into categorical **variables** within **collections**. It inherits attributes and data loading behaviors from the abstract *matrix* **parser** type. ## Example ``` { "parser_type": "categorical-matrix", "collection": "collection_name", "variable": "variable_name, // The parser does all the work to load the data into a single // collection with multiple variables. These will then be converted // into a matrix in post-processing. "parser": { "parser_type": "categorical-row", "variable": { "parser_type": "categorical", "column": "row_header_column_name" }, "indicator": "1" } } ```