Dear Statalist, I am trying to merge a database, but the variable that identifies each individual is a very long string variable. I am trying to use the following code for getting it to be a numeric variable, but it always approximates the number with and exponential, so of course it will tell me that "ID_COMPLETO2" doesn't identify uniquely observations in my data.
This is the code I am using:
destring ID_COMPLETO, gen(ID_COMPLETO_n2)
format %50.0g ID_COMPLETO_n2
But I am getting the following results:

Does anybody have an idea of how to solve this problem?
Best regards.
This is the code I am using:
destring ID_COMPLETO, gen(ID_COMPLETO_n2)
format %50.0g ID_COMPLETO_n2
But I am getting the following results:
Does anybody have an idea of how to solve this problem?
Best regards.
Comment