Hello,
I have to merge two datasets. The key variable is str32. The problem I'm facing is that in one of the data files, this key variable is like 'TUS10008106201911420902372MAN 01' and in another, it is like 'TUS10008106201911420902372MAN01'. Due to this, around 8,000 observations are not matching. Is there any way to remove the spaces in one go because doing it manually will consume a lot of time?
Thanks.
Related Posts with Merging two datasets
Lagged Variable generationI have an individual level cross-sectional dataset. The observations are individuals belonging to a …
XTSET and TTSET Error MessageHello, I have a panel dataset which is evenly balanced but when I run xtset (or ttset) command to s…
Create a table comparing output from diffrent regression modelsHello All, A frequent problem I have in Stata is that I have to run different regression models (fo…
How to create a poverty headcount variable (by municipality)Hi all, I am using South Africa Census 2011 data, and I want to use the derived household annual in…
Median, SD, & FrequencyFor the attached file, find: For variable PAY, calculate median and SD by denial code, but only for…
Subscribe to:
Post Comments (Atom)
0 Response to Merging two datasets
Post a Comment