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

st: recoding variables in order to merge datasets


From   "Erica Seiguer" <[email protected]>
To   <[email protected]>
Subject   st: recoding variables in order to merge datasets
Date   Wed, 2 Jul 2003 09:21:42 -0400

Hi

I am trying to merge two datasets which have the same variable coded
differently in each.

In dataset 1, the variable is 6 digits, with the first digit being a zero.

in dataset 2, the same variable is 5 digits, and the first digit (which
should be a zero) as been truncated.

Does anyone know how to add a zero to the variable in the second dataset?

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