Recoding Values with the Derive Node

Derive nodes can also be used to recode values, for example by converting a string field with categorical values to a numeric nominal (set) field.

  1. For Derive As, select the type of field (Nominal, Flag, etc.) as appropriate.
  2. Specify the conditions for recoding values. For example, you could set the value to 1 if Drug='drugA', 2 if Drug='drugB', and so on.