How can I easily create dummy variables for a given Field?
For example, let's say a Field Category has the unique values of x,y and z. I want to create dummy_x, dummy_y and dummy_z with values of 1 or 0 based on the Category field. Now, I have more than 3 unique values and it is difficult to create the dummy variables one by one.
Is there a way to dynamically create the dummy variables based on the values of a particular field?