numeric-units

Prev Next

The numeric-units parser will load data from a column in a source data table and map values to other values before producing a numeric variable within a collection.

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

The numeric-units parser will parse a column value containing a number and a units string, and will extract the number part to become a variable within a collection.

Attribute - units

{
  "parser_type": "numeric-units",
  "column": "cccc",
  
  // The units attribute is a string to remove to ensure
  // proper parsing as a number
  //
  "units": "$",
  
  "collection": "collection_name",
  "variable": "variable_name"
}