From | "Seyda G Wentworth" <[email protected]> |
To | <[email protected]> |
Subject | st: destring |
Date | Wed, 22 Jun 2005 15:50:28 -0400 |
Dear stata, I need to create a numeric variable (numvar) out of a string (stringvar) to be able to say things like: sum x y z if numvar==5 The string variable is a code with values such as 0107, 0256, etc. How can I make it numeric without loosing the "0" in front? In other words I want to keep all the digits. 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 |