That is an example of my data (as I posted before, there is a total of 100 ops_ko-columns) What I need is to add another variable that has the value 1 if in any of the ops_ko in a row has a certain value. For example if that value was 0107 then the newly added variable would be 1 for the first, second and fifth data row, if it was 9260 it would only be 1 for the second. typ_alter typ_geb aufn_anl aufn_grd ops_ko1 ops_ko2 ops_ko3 ops_ko4 ops_ko5 ops_ko6 ops_ko7 18 2 N 0107 96030 80103 19 2 G 0107 9260 8800c0 10 2 E 0101 12750 14 2 E 0101 57583 17 2 N 0107 3222 1632 21 1 N 0501 87161
... View more