I have the following (stylized) data:
Code:
* Example generated by -dataex-. To install: ssc install dataex clear input str13 name str24 text float what_i_want "Brown" "I called Brown yesterday" 1 "Mueller" "3254 Mueller text" 1 "Yang" "text text text" 0 "Smith" "Monday Tuesday" 0 "Fischer" "test test test" 0 "Schneider" "Today Schneider tomorrow" 1 "Smith Johnson" "text Smith Johnson text" 1 end
The first column is a name (the name can also be of two words), the second column is a text (that could in theory consist of anything (text characters, numbers...) and the thrid column is what I want - an identifier that shows whether the first sting in column 1 (name) appears somewhere in the second column (text). Both columns are strings.
Thanks in advance,
Julian
0 Response to Identify string as part of another string
Post a Comment