categorical-matrix
  • 27 Jul 2022
  • 1 Minute to read
  • Contributors
  • Dark
    Light
  • PDF

categorical-matrix

  • Dark
    Light
  • PDF

Article summary

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"
  }
}

Was this article helpful?

What's Next