Hi there Stata users,
I am trying to merge two datasets using the date as the variable to be merged on. However, in one file the date is an 'int' type while in the other file the date is a 'string' variable which causes an error in merging as Stata will only merge if both variables are of the same type. I have tried to destring the date but this is without success. Can anyone help me out with this?
Kind regards,
Tony
I am trying to merge two datasets using the date as the variable to be merged on. However, in one file the date is an 'int' type while in the other file the date is a 'string' variable which causes an error in merging as Stata will only merge if both variables are of the same type. I have tried to destring the date but this is without success. Can anyone help me out with this?
Kind regards,
Tony
Comment