I'm trying to merge two datasets using the email addresses.
There are a number of observations in the email varlist which are not email addresses (they are redundant bits of text from the export of data from the survey platform).
So I would like to run a command which drops any observation from the email varlist if it does not contain the '@' mark anyway in that observation.
I've been unable to find anything telling me how to drop an observation if it includes a specific character within a longer string (as opposed to equals/is greater than etc.)
Many thanks,
Harry
Related Posts with How to drop observations missing an '@' mark
Converting data to numericHi All, I have the following dataset: Code: * Example generated by -dataex-. To install: ssc ins…
Predictive Modeling using StataAny in depth books or tutorials on modeling with Stata that might be recommended? …
How to handle missing data?Hi all, I am investigating health disparities in some Sub-Saharan Africa countries. Ethnicity is one…
Stata commmands to analyze data where each record contains monthly totals: aggregate data problem but not really a wide to long solutionHi, I have some health centre data from Africa where each record consists of fields that represent …
Dummy VariableHi, So I created a dummy variable by the following code: gen YearGroup = 0 replace YearGroup = 1 i…
Subscribe to:
Post Comments (Atom)
0 Response to How to drop observations missing an '@' mark
Post a Comment