Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: create a unique identifier from a few variables


From   "Erica Seiguer" <[email protected]>
To   <[email protected]>
Subject   st: create a unique identifier from a few variables
Date   Thu, 15 Jan 2004 14:22:26 -0500

Hello-- 

I would like to create a unique identifier from a few variables. The
variables are the following format: int, str80, str20, str34. Is there
any way to create a single variable combining these variables? I will be
turning the last 3 into int and would ideally like the unique identifier
to contain all 4 variables. For example, if for one observation the
individual variables are 01, 02, 03 and 04, I would like the unique
identifier to be 01020304. Does anyone know how to do this?

Thank you!

                 



*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/



© Copyright 1996–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index