Hi All,
I am hoping there is an "easier" solution than a row by row analysis:
I've got one variable called "group1" and another called "group2". I want to evaluate whether any of the string values in group 1 are found within group2. If so, a third variable "found" is coded as 1, else 0.
Thanks in advance!
Ariel
I am hoping there is an "easier" solution than a row by row analysis:
I've got one variable called "group1" and another called "group2". I want to evaluate whether any of the string values in group 1 are found within group2. If so, a third variable "found" is coded as 1, else 0.
Code:
* Example generated by -dataex-. For more info, type help dataex clear input str33 group1 str34 group2 byte found "restart hold-still closer further" "closer right" 1 "closer up look-down right" "restart hold-still" 0 "closer look-down up right" "closer left" 1 "closer look-down up right" "closer up" 1 "closer up look-down left" "restart hold-still" 0 "up closer look-down right" "right up" 1 "closer up look-down left" "up right" 1 "closer up look-down left" "look-right hold-still further left" 1 "closer right up left" "look-right look-up closer" 1 "closer left right up" "restart hold-still further" 0 end
Ariel
Comment