Hello
I am Hatem Ali, STATA user.
I have a 2 large dataset that I am trying to merge
The common variable in these 2 datasets is called: trr-id_code.
However, This variable is a string non-numeric variable
When I try to merge one by one using key variable. STATA doesnt do and say variables are unequal.
when I tried to destring it, I got the following message:
destring trr_id_code, generate(hhh)
trr_id_code contains nonnumeric characters; no generate
1st question: Is there a way I can destring this variable so I can use it for merging?
2nd question: can I use : merge one to one by observation instead?
Looking forward to hear back from you
Related Posts with destring non numeric values
Control variable that varies accross time but not accros countries how to add to dataset and regressionHello everyone, For my regression i am using the VIX as a proxy for volatility and the TED spread a…
Very weird spmap problem: "master data not sorted"Hello all Suddenly, I am having some unexplained problem with spmap: syntax which previously was wo…
Split file by group i.e. group 1 (non clinical) vs group 2 (clinical)Hi there, Might someone please advise how I split my Stata dataset by 1 variable "Group" which is h…
Displaying results in full form - double formatHi All, I am using the following command, in stata 13.1 total subsidyamt, over(fiscal_year1) to c…
Quintile Sorting two variablesI have monthly observations from various funds over along amount of time but the time series are unb…
Subscribe to:
Post Comments (Atom)
0 Response to destring non numeric values
Post a Comment