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
binary choice model after collapseis it possible to use binary choice models to predict pr(y|x) after collapsing the data by group? …
Table command in stata 16 does not allow statistic optionHello there, I am running a 3-way table using table command. I tried to add statistic and no totals…
Why many commands do not work?Hello dear stata community I am kind of new to stata but I have been facing issues with many command…
Manually calculating IV standard errors and getting STATA to use them in the regression tableI found the following script from one of the other threads to be helpful in calculating IV standard …
list if conditionsI used the following code to list the observations in a variable if the binary "check" is 0. But in …
Subscribe to:
Post Comments (Atom)
0 Response to Merging two datasets
Post a Comment