From | "Plummer, Dale" <[email protected]> |
To | <[email protected]> |
Subject | st: how to extract numeric part of a string |
Date | Mon, 16 Dec 2002 16:22:40 -0600 |
If I have a string variable, is there a way to extract out only the number component? Examples: Var_source Var_target Abc123 123 Dog34 34 1209 1209 cat . Thanks for any ideas. Dale Plummer Department of Preventive Medicine Vanderbilt School of Medicine A1124 MCN Nashville, Tennessee 37232-2637 * * 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 |