numeric-row
  • 27 Jul 2022
  • 1 Minute to read
  • Contributors
  • Dark
    Light
  • PDF

numeric-row

  • Dark
    Light
  • PDF

Article summary

The numeric-row parser will load data from one or more rows from a source data table into numeric variables within **collections.

It inherits attributes and data loading behaviors from the abstract row parser type - and it also inherits attributes from the numeric parser type, e.g. merge.

The numeric variables produced will be named after the row headers.

Attribute - operator

The operator attribute is optional.

{
  "parser_type": "numeric-row",
  "collection": "collection_name",
  "variable": {...},
  
  // This is a numeric operator which will transform values
  // parsed from each row before loading them into
  // variables
  //
  // See column parser - numeric-transform for options
  //
  "operator": "log"
}

Attribute - constant

The constant attribute is optional. If used, the operator attribute becomes required.

{
  "parser_type": "numeric-row",
  "collection": "collection_name",
  "variable": {...},
  "operator": "*",
  
  // This is a constant to apply in conjunction with the operator
  // to values parsed from each row
  //
  // For example, this will multiple all values by 10
  //
  "constant": 10
}

Was this article helpful?

What's Next