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

st: Two digit prefix to variables


From   [email protected]
To   [email protected]
Subject   st: Two digit prefix to variables
Date   Thu, 1 Jul 2004 14:19:15 -0400

Dear Statalisters,

Could you please help me work out how to attach a two digit numerical prefix to
all my variables? I am preparing to append surveys from different dates but
that have the same variable names, and I would like to distinguish between them
by adding a two digit year prefix (e.g. hhid becomes 95hhid). This will be done
before appending the datasets, so that when I do append I can distinguish
between the variables.

I have not yet taken the Stata programming course (hope to soon), so I'm unsure
where to start.

Thanks,
Reza
*
*   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