From | Kit Baum <[email protected]> |
To | [email protected] |
Subject | st: Re: extract variable name |
Date | Wed, 3 Aug 2005 08:14:10 -0400 |
Now I want to reshape it to long, but stata fails to read the two-digit values after the turn of century (00 01 02), so I need to rename all varibles to a four-digit year. foreach var of varlist var1_88-var100_02{ //save name of variable in a local string //do nessecary string manipulation (I can do that) //rename var }
* * 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 |