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

numeric-combinations

  • Dark
    Light
  • PDF

Article summary

numeric-combinations

creates: numeric collection

A numeric-combinations data function produces one or more collections of numeric variables, contingent on the categorical data function provided in the criteria array. The numerics attribute specifies which numeric variables will be transformed in combination with the dynamic categorical combinations.

attributetypedescriptionoptions
operatorstringhow to combine the criteria and categoricals data
  • all
  • single
  • pairwise
  • use_variable_namebooleannumeric variable names are used as the new collection names
  • true
  • false
  • criteriaarraycategorical data
  • collection
  • data_function
  • argument_reference
  • numericsarraynumeric data
  • collection
  • data_function
  • argument_reference
  • {
      "data_function_type": "numeric-combinations",
      "operator": "all",
      "use_variable_name": true,
      "criteria": [
        ...
      ],
      "numerics": [
        ...
      ]
    }
    


    By default, the operator attribute is set to all. The all operator means that each variable from the collections defined in the criteria array will be intersected with every numeric variable, one at a time, from all of the other collections in criteria. Dynamic collections from all-vs-all combinations of variables are used to transform each numeric variable from the numerics array.

    If the operator attribute is set to single, each categorical variable from the collections defined in the criteria array will be independently used to transform each numeric variable from the numerics array.

    If the operator attribute is set to pairwise, each numeric variable from the collections defined in the criteria array will be intersected with every numeric variable, from each of the other collections in numerics. Dynamic collections from all pairwise combinations of variables are used to transform each numeric variable from the numerics array.


    Was this article helpful?