Dear members,
I have a question related to the topic of comparing string variables and extracting string variables. I have the following two variables and example data:
Email1 | Email2
maja.li@hhh.com,andi.ko@ff.de,adam.o@gji.com | maja.li@hhh.com,andi.ko@ff.de
chris@kkk.com,david.r@fffff.com,karla.llll@dddd.fr | karla.llll@dddd.fr
I’d like to create a third variable, that indicates specifically which email addresses are present in var:Email1, but not in var:Email2. For the above stated data, this would be (Var3):
Email1 | Email2 | Var3
maja.li@hhh.com,andi.ko@ff.de,adam.o@gji.com | maja.li@hhh.com,andi.ko@ff.de | adam.o@gji.com
chris@kkk.com,david.r@fffff.com,karla.llll@dddd.fr | karla.llll@dddd.fr | chris@kkk.com,david.r@fffff.com
Is this even possible, and if so, how can I accomplish this?
All variables are string variables and the email addresses are separated by a comma (no space character between them). I am using Stata 12.
Thank you very much in advance.
Maja
Related Posts with Comparing string variables and extracting string variables
Question about xtdpdgmm and xtabond2Hello all I m trying to run a difference gmm model with both these commands but I have different res…
Test to compare categorical (percentages) between two populations?I have two datasets of demgraphic data which I wish to compare. Ideally I would like to run a do fil…
I want to create a new variable that can double count some observationsHello I am using Stata/SE 13.1 on windows10. Apologies I am a Stata novice but will try my best here…
Main effect omitted as it is time-invariant. Is including the interaction without the main effect an issue?I am interested in the impact of Unemployment (U) on Gross Domestic Product (GDP). I also want to ch…
Can I have two lines and one histogram in the same graph?Hi all, I would like to draw a graph with three information: 1. Age on y-axis(1) 2. Gender on y-axi…
Subscribe to:
Post Comments (Atom)
0 Response to Comparing string variables and extracting string variables
Post a Comment