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
merge sequentially?Dear All, J found this question here (in Chinese). Suppose that I have two datasets. Data A is: Cod…
Change axis label specifications twoway graphHello, I am tyring to group values if the follwing changes of the y-axis label would be possible: -…
Speed comparison: Passing data vector by name vs pointers in Mata | StataI was experimenting with different uses of pointers. Turns out that in a larger dataset, pointer mig…
command "strupper" is unrecognisedHi all, I don't know why it happens when I wrote: strupper ("hallo") the error: command strupper is …
Omitted dummy variables due to collinearity, but missing values should prevent them entering the modelDear Statalisters, I am using Stata SE 17 on Windows 10. I'm conducting a panel data analysis with t…
Subscribe to:
Post Comments (Atom)
0 Response to Merging two datasets
Post a Comment