Hi,
I am trying two merge two datasets using the key ID (Neighborhood_Code).
However, Im getting the error
" Each key variable -- the variables on which observations are matched -- must be of the same generic type in the master and using datasets. Same generic
type means both numeric or both string."
The key ID is a combination of numbers like '110111110901'.
In the first dataset, the ID format is %18.0g and in the second %12s.
I want both to be stored as string before merging.
How should I do that ?
Related Posts with Problem with Merging
Help with creating a table with ~20 svy outputs from different framesHi all, Newbie to Stata here, just migrated from R. I am struggling with understanding the methods …
why noconst option generate so different results in Nlogit?Dear experts, I used Nlogit to analyse data. First, I did not include noconst in level 2 equation. …
Counting variables with a stub across rows in frame, add count to new columnHi all, I am a newbie to Stata, recently transitioned from R. I am struggling with combining the le…
Drop empty variables when importing spss into stataI have an spss dataset that has ~27000 variables, but only ~500 include any values. The rest are bla…
Longitudinal latent class trajectory analysis guidanceDear Stata users, I am trying to perform longitudinal analysis for the first time, so would appreci…
Subscribe to:
Post Comments (Atom)
0 Response to Problem with Merging
Post a Comment