Hi,
I'd like to recode some variables so if a source contains a certain text I'd like to use a number for it.
Example:
Source
id1: Dog, Cat, Mouse
id2: Dog
id3: Dog, Cat
id4: Dog, Mouse
New variable 1:
If source contains Dog use 1
Then with this all the ids would use 1.
Right now I can only see the Equal to operator but that'll only work for id2.
I assume with a function it's doable, but I'm not so familiar with functions. Any ideas?
Thanks!