Hi, is there an easy, preferably automated way to create N variables with values 0 and 1 from a string variable that contains N different values? Ideally the code should work without any knowledge about N or the different values of the original variable. Example: Have: COLOR Blue Red Blue Green Green Yellow Green Yellow Want: COLOR_BLUE COLOR_RED COLOR_GREEN COLOR_YELLOW 1 0 0 0 0 1 0 0 1 0 0 0 0 0 1 0 0 0 1 0 0 0 0 1 0 0 1 0 0 0 0 1
... View more