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