From | Raphael Fraser <[email protected]> |
To | [email protected] |
Subject | st: Splitting a string variable |
Date | Tue, 6 Sep 2005 12:34:19 -0500 |
Dear All, I have a string variable of the type listed below: id 0008 0020 016A 0160C How do I remove the leading zeros from this variable? I tried using the -split- command, but it removed both leading and trailing zeros. The end result should look like this: id 8 20 16A 160C Thank you Raphael * * 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 |