---
title: "numeric-compound"
slug: "numeric-compound-parser"
updated: 2022-07-27T17:28:05Z
published: 2022-07-27T17:28:05Z
---

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

The *numeric-compound* **parser** will load data from two or more columns in a source data table and combine their values before producing a numeric **variable** within a **collection**.

It inherits attributes and behaviors from its parent: **parser** - *numeric*.

Note - the *columns* attribute supersedes the *column* attribute, which is not used in this **parser** type.

## Attribute - operator
The *operator* attribute is required.
```json
{
  "parser_type": "numeric-compound",
  "columns": [
    "ccc1",
    "ccc2"
  ]
  
  // The value of the operator attribute is a numeric operator
  // which will combine values from the inner column parsers
  // 
  // Options include:
  // "+"
  // "-"
  // "*"
  // "/"
  // "%"
  // "^"
  // "log10+" - adds logs
  // "ln+" - adds logs
  // "log2+" - adds logs
  // "boxcox10+" - adds logs
  // "log10-" - subtracts logs
  // "ln-" - subtracts logs
  // "log2-" - subtracts logs
  // "boxcox10-" - subtracts logs
  //
  "operator": "*",
  
  "collection": "collection_name",
  "collection": "variable_name"
}
```
## Attribute - columns
The *columns* attribute is required.
```json
{
  "parser_type": "numeric-compound", 
  "operator": "*",
  
  // The columns attribute specifies two column names
  // to produce values for combination
  //
  "columns": [
    "ccc1", // column one name - a parser will be auto-generated
    "ccc2"  // column two name - a parser will be auto-generated
  ],
  
  "collection": "collection_name",
  "collection": "variable_name"
}
```
## Attribute - columns as parsers
The *columns* attribute is required.
```json
{
  "parser_type": "numeric-compound", 
  "operator": "*",
  
  // The columns attribute specifies two inner parsers 
  // to produce values for combination
  //
  "columns": [
    {...}, // parser one
    {...} // parser two
  ],
  
  "collection": "collection_name",
  "collection": "variable_name"
}
```
