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
Merge if mergeHi, I have used the command "merge", creating a new var called "epr" instead of "_merge": merge m…
lagged variablesHi, I have a variable for gdp and for survey wave. I have three survey years and for each survey wav…
FMM errorI have the following estimation command using fmm: > fmm 3: regress $Y $T $X where $Y $X and $T…
Stata Export over EXCEL's row limitHi All, 1,048,576 is the max row limit for excel. So if you have STATA data over this limit and wan…
Clique identification within larger networkI am interested in identifying cliques of entities (think of groups of common friends within a socia…
Subscribe to:
Post Comments (Atom)
0 Response to Comparing string variables and extracting string variables
Post a Comment